mirror of
https://github.com/nasa/trick.git
synced 2025-01-06 13:18:46 +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
|