DUNE: Uniform Navigational Environment
2.6.0-rc1
|
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 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 Monitors::Emergency::Task::consume().