mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-31 16:52:10 +01:00
REVONANO Guidance alarm clearing on change of mode
This commit is contained in:
parent
bddb9377a4
commit
4a78602da2
@ -62,7 +62,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
void UpdateVelocityDesired(void);
|
void UpdateVelocityDesired(void);
|
||||||
int8_t UpdateStabilizationDesired(bool yaw_attitude, float yaw_direction);
|
int8_t UpdateStabilizationDesired(bool yaw_attitude, float yaw_direction);
|
||||||
void fallback_to_hold(void);
|
|
||||||
|
|
||||||
VtolPathFollowerSettingsData *vtolPathFollowerSettings;
|
VtolPathFollowerSettingsData *vtolPathFollowerSettings;
|
||||||
PIDControlNE controlNE;
|
PIDControlNE controlNE;
|
||||||
|
@ -242,6 +242,7 @@ static void pathFollowerSetActiveController(void)
|
|||||||
if (activeController == 0) {
|
if (activeController == 0) {
|
||||||
// Initialise
|
// Initialise
|
||||||
pathFollowerInitializeControllersForFrameType();
|
pathFollowerInitializeControllersForFrameType();
|
||||||
|
AlarmsSet(SYSTEMALARMS_ALARM_GUIDANCE, SYSTEMALARMS_ALARM_OK);
|
||||||
|
|
||||||
switch (frameType) {
|
switch (frameType) {
|
||||||
case FRAME_TYPE_MULTIROTOR:
|
case FRAME_TYPE_MULTIROTOR:
|
||||||
@ -273,6 +274,7 @@ static void pathFollowerSetActiveController(void)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
activeController = 0;
|
activeController = 0;
|
||||||
|
AlarmsSet(SYSTEMALARMS_ALARM_GUIDANCE, SYSTEMALARMS_ALARM_UNINITIALISED);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -289,6 +291,7 @@ static void pathFollowerSetActiveController(void)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
activeController = 0;
|
activeController = 0;
|
||||||
|
AlarmsSet(SYSTEMALARMS_ALARM_GUIDANCE, SYSTEMALARMS_ALARM_UNINITIALISED);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -305,12 +308,14 @@ static void pathFollowerSetActiveController(void)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
activeController = 0;
|
activeController = 0;
|
||||||
|
AlarmsSet(SYSTEMALARMS_ALARM_GUIDANCE, SYSTEMALARMS_ALARM_UNINITIALISED);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
activeController = 0;
|
activeController = 0;
|
||||||
|
AlarmsSet(SYSTEMALARMS_ALARM_GUIDANCE, SYSTEMALARMS_ALARM_UNINITIALISED);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -130,11 +130,6 @@ void VtolBrakeFSM::Activate()
|
|||||||
setState(BRAKE_STATE_BRAKE, FSMBRAKESTATUS_STATEEXITREASON_NONE);
|
setState(BRAKE_STATE_BRAKE, FSMBRAKESTATUS_STATEEXITREASON_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VtolBrakeFSM::Abort(void)
|
|
||||||
{
|
|
||||||
setState(BRAKE_STATE_HOLD, FSMBRAKESTATUS_STATEEXITREASON_NONE);
|
|
||||||
}
|
|
||||||
|
|
||||||
PathFollowerFSMState_T VtolBrakeFSM::GetCurrentState(void)
|
PathFollowerFSMState_T VtolBrakeFSM::GetCurrentState(void)
|
||||||
{
|
{
|
||||||
switch (mBrakeData->currentState) {
|
switch (mBrakeData->currentState) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user