mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
LP-295: fixed comments and formatting
This commit is contained in:
parent
37d9675924
commit
bf80ede401
@ -98,7 +98,7 @@ int32_t FixedWingLandController::Initialize(FixedWingPathFollowerSettingsData *p
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* reset integrals
|
* reset globals, (integrals, accumulated errors and timers)
|
||||||
*/
|
*/
|
||||||
void FixedWingLandController::resetGlobals()
|
void FixedWingLandController::resetGlobals()
|
||||||
{
|
{
|
||||||
|
@ -47,7 +47,7 @@ typedef enum {
|
|||||||
AUTOTAKEOFF_STATE_THRUSTDOWN, // Thrust down sequence
|
AUTOTAKEOFF_STATE_THRUSTDOWN, // Thrust down sequence
|
||||||
AUTOTAKEOFF_STATE_THRUSTOFF, // Thrust is now off
|
AUTOTAKEOFF_STATE_THRUSTOFF, // Thrust is now off
|
||||||
AUTOTAKEOFF_STATE_DISARMED, // Disarmed
|
AUTOTAKEOFF_STATE_DISARMED, // Disarmed
|
||||||
AUTOTAKEOFF_STATE_ABORT, // Abort on error triggerig fallback to land
|
AUTOTAKEOFF_STATE_ABORT, // Abort on error triggers fallback to land
|
||||||
AUTOTAKEOFF_STATE_SIZE
|
AUTOTAKEOFF_STATE_SIZE
|
||||||
} PathFollowerFSM_AutoTakeoffState_T;
|
} PathFollowerFSM_AutoTakeoffState_T;
|
||||||
|
|
||||||
|
@ -130,8 +130,8 @@ uint8_t VtolAutoTakeoffController::Mode(void)
|
|||||||
void VtolAutoTakeoffController::ObjectiveUpdated(void)
|
void VtolAutoTakeoffController::ObjectiveUpdated(void)
|
||||||
{
|
{
|
||||||
if (mOverride) {
|
if (mOverride) {
|
||||||
// override pathDesired from PathPLanner with current position,
|
// override pathDesired from PathPlanner with current position,
|
||||||
// as we deliberately don' not care about the location of the waypoints on the map
|
// as we deliberately don't care about the location of the waypoints on the map
|
||||||
float velocity_down;
|
float velocity_down;
|
||||||
float autotakeoff_height;
|
float autotakeoff_height;
|
||||||
PositionStateData positionState;
|
PositionStateData positionState;
|
||||||
@ -161,6 +161,8 @@ void VtolAutoTakeoffController::ObjectiveUpdated(void)
|
|||||||
controlDown.UpdatePositionSetpoint(pathDesired->End.Down);
|
controlDown.UpdatePositionSetpoint(pathDesired->End.Down);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Controller deactivated
|
||||||
void VtolAutoTakeoffController::Deactivate(void)
|
void VtolAutoTakeoffController::Deactivate(void)
|
||||||
{
|
{
|
||||||
if (mActive) {
|
if (mActive) {
|
||||||
|
Loading…
Reference in New Issue
Block a user