DUNE: Uniform Navigational Environment
2016.05.0
|
MediumHandler handles vehicle medium data.
Public Member Functions | |
MediumHandler (void) | |
void | update (const IMC::VehicleMedium *msg) |
bool | isKnown (void) |
bool | changed (void) |
bool | inWater (void) |
bool | outWater (void) |
bool | isUnderwater (void) |
bool | isWaterSurface (void) |
|
inline |
Constructor.
|
inline |
This functions checks if medium has changed.
|
inline |
This functions checks if medium is water.
References isUnderwater(), and isWaterSurface().
|
inline |
This functions checks if medium is known.
|
inline |
This functions checks if system is underwater.
References DUNE::IMC::VehicleMedium::medium, and DUNE::IMC::VehicleMedium::VM_UNDERWATER.
Referenced by Sensors::CyclopsC7::Task::consume(), Monitors::Emergency::Task::consume(), inWater(), and Monitors::Emergency::Task::task().
|
inline |
This functions checks if system is on water surface.
References DUNE::IMC::VehicleMedium::medium, and DUNE::IMC::VehicleMedium::VM_WATER.
Referenced by inWater().
|
inline |
This functions checks if system is out of water.
References DUNE::IMC::VehicleMedium::medium, DUNE::IMC::VehicleMedium::VM_AIR, and DUNE::IMC::VehicleMedium::VM_GROUND.
|
inline |
Update with new info.
[in] | msg | latest vehicle medium message. |
References DUNE::IMC::VehicleMedium::medium, and DUNE::IMC::VehicleMedium::VM_UNKNOWN.
Referenced by Sensors::CyclopsC7::Task::consume(), and Monitors::Emergency::Task::consume().