Skip to content

Commit

Permalink
Tool: build_options.py: add AP_ROVER_ADVANCED_FAILSAFE_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and rmackay9 committed Aug 6, 2024
1 parent 227b678 commit 54a6344
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rover/afs_rover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ AP_AdvancedFailsafe::control_mode AP_AdvancedFailsafe_Rover::afs_mode(void)
//to force entering auto mode when datalink loss
void AP_AdvancedFailsafe_Rover::set_mode_auto(void)
{
over.set_mode(rover.mode_auto,ModeReason::GCS_FAILSAFE);
rover.set_mode(rover.mode_auto,ModeReason::GCS_FAILSAFE);
}
#endif // ADVANCED_FAILSAFE
#endif // AP_ROVER_ADVANCED_FAILSAFE_ENABLED
2 changes: 2 additions & 0 deletions Tools/scripts/build_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def __init__(self,
Feature('Copter', 'MODE_FLIP', 'MODE_FLIP_ENABLED', 'Enable Mode Flip', 0, None),
Feature('Copter', 'MODE_BRAKE', 'MODE_BRAKE_ENABLED', 'Enable Mode Brake', 0, None),

Feature('Rover', 'ROVER_ADVANCED_FAILSAFE', 'AP_ROVER_ADVANCED_FAILSAFE_ENABLED', 'Enable Advanced Failsafe', 0, None),

Feature('Mission', 'MISSION_NAV_PAYLOAD_PLACE', 'AP_MISSION_NAV_PAYLOAD_PLACE_ENABLED', 'Enable handling of NAV_PAYLOAD_PLACE mission items', 0, None), # noqa
Feature('Copter', 'AC_PAYLOAD_PLACE_ENABLED', 'AC_PAYLOAD_PLACE_ENABLED', 'Enable Payload Place flight behaviour', 0, 'MISSION_NAV_PAYLOAD_PLACE'), # noqa

Expand Down
2 changes: 2 additions & 0 deletions Tools/scripts/extract_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ def __init__(self, filename, nm="arm-none-eabi-nm", strings="strings"):
('AP_MAVLINK_MSG_HIL_GPS_ENABLED', r'mavlink_msg_hil_gps_decode'),
('AP_BARO_PROBE_EXTERNAL_I2C_BUSES', r'AP_Compass::_probe_external_i2c_compasses'),
('AP_RSSI_ENABLED', r'AP_RSSI::init'),

('AP_ROVER_ADVANCED_FAILSAFE_ENABLED', r'Rover::afs_fs_check'),
]

def progress(self, msg):
Expand Down

0 comments on commit 54a6344

Please sign in to comment.