DUNE: Uniform Navigational Environment
2.4.2
|
Angle manipulation and conversion methods.
Static Public Member Functions | |
static fp64_t | normalizeRadian (fp64_t a) |
static fp64_t | radians (fp64_t d) |
static fp64_t | degrees (fp64_t r) |
static fp64_t | convertDMSToDecimal (int degrees, int minutes, int seconds) |
static fp64_t | convertDMSToDecimal (int degrees, double minutes) |
static void | convertDecimalToDMS (double value, int °rees, int &minutes, double &seconds) |
static void | convertDecimalToDM (double value, int °rees, double &minutes) |
static void | rotate (double angle, bool clockwise, double &x, double &y) |
static fp64_t | minSignedAngle (fp64_t a, fp64_t b) |
|
inlinestatic |
Convert decimal degrees to Degrees, Minutes.
value | degrees in decimal format. |
degrees | computed degrees. |
minutes | computed minutes. |
References degrees().
|
inlinestatic |
Convert decimal degrees to Degrees, Minutes, Seconds.
value | degrees in decimal format. |
degrees | computed degrees. |
minutes | computed minutes. |
seconds | computed seconds. |
References degrees().
|
inlinestatic |
Convert Degrees, Minutes, Seconds to Decimal Format.
degrees | degrees. |
minutes | minutes. |
seconds | seconds. |
Referenced by DUNE::Utils::NMEAParser::parseCoordinate().
|
inlinestatic |
Convert Degrees, Minutes to Decimal Format.
degrees | degrees. |
minutes | minutes. |
|
inlinestatic |
Convert a value given in radian to degree.
r | value in radian. |
Referenced by DUNE::Control::PathController::consume(), Simulators::UAV::Task::consume(), Maneuver::VehicleFormation::FormCollAvoid::Task::consume(), convertDecimalToDM(), convertDecimalToDMS(), Simulators::UAV::Task::onResourceAcquisition(), Maneuver::VehicleFormation::FormCollAvoid::Task::onResourceAcquisition(), DUNE::IMC::DeviceUpdate::serialize(), and Sensors::Imagenex837B::Frame::setGpsData().
|
inlinestatic |
Computes the smallest signed angle between two angles in radians.
a | angle in radian. |
b | angle in radian. |
Referenced by DUNE::Navigation::BasicNavigation::consume().
|
inlinestatic |
Normalize radian so that the value falls between -pi and +pi.
a | angle in radian. |
Referenced by DUNE::Control::PathController::consume(), DUNE::Navigation::BasicNavigation::consume(), DUNE::Navigation::BasicNavigation::isActive(), and DUNE::Navigation::BasicNavigation::onDispatchNavigation().
|
inlinestatic |
Convert a value given in degree to radian.
d | value in degree. |
Referenced by DUNE::IMC::DeviceUpdate::deserialize(), Sensors::GillWindObserverII::Task::onMain(), Simulators::UAV::Task::onResourceAcquisition(), Maneuver::VehicleFormation::FormCollAvoid::Task::onResourceAcquisition(), DUNE::Control::PathController::onUpdateParameters(), DUNE::Parsers::PlanConfigParser::parseAngle(), and Maneuver::VehicleFormation::FormCollAvoid::Task::Task().
|
inlinestatic |
XY Coordinate conversion considering a rotation angle.
(Eduardo Marques)
angle | angle |
clockwise | clockwise rotation or not |
x | original x value on entry, rotated x value on exit. |
y | original y value on entry, rotated y value on exit. |
Referenced by DUNE::Maneuvers::RowsStages::RowsStages().