DUNE: Uniform Navigational Environment
2019.02.0
|
Plan Specification parser.
Public Member Functions | |
FuelPrediction (const Plans::TimeProfile *profiles, const ComponentActiveTime *cat, const Power::Model *power_model, const Plans::SpeedModel *speed_model, bool imu_enabled, float total_duration) | |
~FuelPrediction (void) | |
void | onFuelLevel (const IMC::FuelLevel *msg) |
bool | isFuelValid (void) const |
float | getPredictionError (void) const |
float | getTotal (bool relative=false) const |
float | getHotel (bool relative=false) const |
float | getPayload (bool relative=false) const |
float | getMotion (bool relative=false) const |
float | getIMU (bool relative=false) const |
|
inline |
Constructor.
References Plan::Engine::FP_IMU.
|
inline |
Destructor.
|
inline |
Get the hotel estimated fuel consumption.
[in] | relative | output result in percentage of battery |
References Plan::Engine::FP_HOTEL.
Referenced by Plan::Engine::PreStatistics::fill().
|
inline |
Get the estimated fuel consumption by the IMU.
[in] | relative | output result in percentage of battery |
References Plan::Engine::FP_IMU.
Referenced by Plan::Engine::PreStatistics::fill().
|
inline |
Get the motion estimated fuel consumption.
[in] | relative | output result in percentage of battery |
References Plan::Engine::FP_MOTION.
Referenced by Plan::Engine::PreStatistics::fill().
|
inline |
Get the payload estimated fuel consumption.
[in] | relative | output result in percentage of battery |
References Plan::Engine::FP_PAYLOAD.
Referenced by Plan::Engine::PreStatistics::fill().
|
inline |
Get the prediction error Check if the fuel values are valid first!
References getTotal().
Referenced by Plan::Engine::RunTimeStatistics::fill().
|
inline |
Get the total estimated fuel consumption.
[in] | relative | output result in percentage of battery |
References Plan::Engine::FP_TOTAL.
Referenced by Plan::Engine::PreStatistics::fill(), and getPredictionError().
|
inline |
Check if prediction error can be computed.
Referenced by Plan::Engine::RunTimeStatistics::fill().
|
inline |
Use fuel level messages to compute error in prediction.
[in] | msg | FuelLevel message |
Referenced by Plan::Engine::Plan::onFuelLevel().