mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
Plane: build AFS (formerly known as OBC) failsafe on Pixhawk
this gives an advanced failsafe system which may be useful for other than OBC use
This commit is contained in:
parent
a812bf621f
commit
4f57467aa5
@ -1073,7 +1073,9 @@ const AP_Param::Info var_info[] PROGMEM = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if OBC_FAILSAFE == ENABLED
|
#if OBC_FAILSAFE == ENABLED
|
||||||
GOBJECT(obc, "FS_", APM_OBC),
|
// @Group: AFS_
|
||||||
|
// @Path: ../libraries/APM_OBC/APM_OBC.cpp
|
||||||
|
GOBJECT(obc, "AFS_", APM_OBC),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AP_AHRS_NAVEKF_AVAILABLE
|
#if AP_AHRS_NAVEKF_AVAILABLE
|
||||||
|
@ -138,7 +138,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// RADIO CONFIGURATION
|
// RADIO CONFIGURATION
|
||||||
@ -488,8 +487,12 @@
|
|||||||
|
|
||||||
// OBC Failsafe enable
|
// OBC Failsafe enable
|
||||||
#ifndef OBC_FAILSAFE
|
#ifndef OBC_FAILSAFE
|
||||||
|
#if HAL_CPU_CLASS >= HAL_CPU_CLASS_75
|
||||||
|
# define OBC_FAILSAFE ENABLED
|
||||||
|
#else
|
||||||
# define OBC_FAILSAFE DISABLED
|
# define OBC_FAILSAFE DISABLED
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SERIAL_BUFSIZE
|
#ifndef SERIAL_BUFSIZE
|
||||||
# define SERIAL_BUFSIZE 512
|
# define SERIAL_BUFSIZE 512
|
||||||
|
Loading…
Reference in New Issue
Block a user