8#include "Atmosphere.hpp"
10#include "ElectricEngine.hpp"
14ElectricEngine::ElectricEngine(
float voltage,
float Kv,
float Rm) :
18 _omega0 = voltage * Kv;
20 _torque0 = _K * _K * _omega0 / _Rm;
23void ElectricEngine::calc(
float pressure,
float temp,
float omega)
25 _running = (_throttle > _minThrottle);
34 _torque = ((_throttle - _minThrottle) / (1 - _minThrottle) - omega / _omega0) * _torque0;