mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
25 lines
541 B
C++
25 lines
541 B
C++
/**************************************************************
|
|
PURPOSE: (Electrical Model)
|
|
***************************************************************/
|
|
#ifndef ELECTRICAL_CIRCUIT_H
|
|
#define ELECTRICAL_CIRCUIT_H
|
|
|
|
class DCBattery;
|
|
class DCMotor;
|
|
|
|
class ElectricalCircuit
|
|
{
|
|
public:
|
|
DCMotor* motor1;
|
|
DCMotor* motor2;
|
|
DCBattery* battery;
|
|
ElectricalCircuit();
|
|
void init (DCMotor* motor1, DCMotor* motor2, DCBattery* battery);
|
|
void update();
|
|
private:
|
|
double motorsCurrent;
|
|
|
|
};
|
|
|
|
#endif
|