DUNE: Uniform Navigational Environment
2.6.0-rc4
|
Utility class to compute offline power conversions and hold model parameters.
Consider ONLY positive speed.
Public Member Functions | |
PowerModel (Parsers::Config *cfg) | |
void | validate (void) const |
float | computeMotionEnergy (float rpm, float duration) const |
float | computePayloadEnergy (const std::string &label, float duration) const |
float | computeHotelEnergy (float duration) const |
float | computeIMUEnergy (float duration) const |
float | getBatteryCapacity (void) const |
|
inline |
|
inline |
Compute energy consumed by minimal resources.
[in] | duration | amount of time in seconds |
|
inline |
Compute energy consumed by IMU.
[in] | duration | amount of time in seconds |
|
inline |
Compute energy consumed by motor for some RPM value.
[in] | rpm | value of rpms to convert from |
[in] | duration | amount of time rotating at rpm |
References DUNE::Math::piecewiseLI().
|
inline |
Compute energy consumed by a payload entity.
[in] | label | name of the payload |
[in] | duration | amount of time active |
|
inline |
Get the battery capacity.
|
inline |
Validate the model.