DUNE: Uniform Navigational Environment
2.4.0
|
Public Member Functions | |
YoYoMotion (DUNE::Tasks::Task *task, float pitch, float z_ref, float amplitude, float variation) | |
float | update (bool startup, float state_z, float pitch) |
float | stabilize (float desired_pitch, float current_pitch) |
bool | isBetweenBounds (float state_z) |
|
inline |
Constructor.
[in] | task | pointer to calling task |
[in] | pitch | pitch angle to use in motion |
[in] | z_ref | amplitude z reference for yoyo motion (negative if altitude) |
[in] | amplitude | z reference amplitude for yoyo motion |
[in] | variation | maximum variation for the pitch angle |
|
inline |
Check if vehicle is between yoyo bounds.
[in] | state_z | current z state |
Referenced by Maneuver::CompassCalibration::Task::consume().
|
inline |
Stabilize pitch in a certain value.
[in] | desired_pitch | pitch angle at which to stabilize |
[in] | current_pitch | current pitch angle |
Referenced by Maneuver::YoYo::Task::update().
|
inline |
Update yoyo motion.
[in] | startup | whether or not the yoyo motion is starting now |
[in] | state_z | current z position (negative if altitude) |
[in] | pitch | current pitch angle |
References DUNE::Tasks::Task::debug().
Referenced by Maneuver::YoYo::Task::update(), and Maneuver::CompassCalibration::Task::yoyoMotion().