Skip to content

Commit

Permalink
Tools: Add AP_ALT_HOLD_AVOIDANCE_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabsingh3003 committed Jan 11, 2025
1 parent 16c9523 commit 48f106a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tools/scripts/build_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def config_option(self):
Feature('Safety', 'RALLY', 'HAL_RALLY_ENABLED', 'Enable Rally points', 0, None), # noqa
Feature('Safety', 'AC_AVOID', 'AP_AVOIDANCE_ENABLED', 'Enable Object Avoidance', 0, 'FENCE'),
Feature('Safety', 'AC_OAPATHPLANNER', 'AP_OAPATHPLANNER_ENABLED', 'Enable Object Avoidance Path Planner', 0, 'FENCE'),
Feature('Safety', 'AC_AVOID', 'AP_ALT_HOLD_AVOIDANCE_ENABLED', 'Enable Alt-Hold based Avoidance', 0, None),

Feature('Battery', 'BATTERY_FUELFLOW', 'AP_BATTERY_FUELFLOW_ENABLED', 'Enable Fuel flow battery monitor', 0, None),
Feature('Battery', 'BATTERY_FUELLEVEL_PWM', 'AP_BATTERY_FUELLEVEL_PWM_ENABLED', 'Enable PWM Fuel level battery monitor', 0, None), # noqa: E501
Expand Down
1 change: 1 addition & 0 deletions Tools/scripts/extract_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def __init__(self, filename, nm="arm-none-eabi-nm", strings="strings"):
('AP_FENCE_ENABLED', r'AC_Fence::check\b',),
('HAL_RALLY_ENABLED', 'AP_Rally::find_nearest_rally_point',),
('AP_AVOIDANCE_ENABLED', 'AC_Avoid::AC_Avoid',),
('AP_ALT_HOLD_AVOIDANCE_ENABLED', 'AC_Avoid::AC_Avoid',),
('AP_OAPATHPLANNER_ENABLED', 'AP_OAPathPlanner::AP_OAPathPlanner',),
('AC_PAYLOAD_PLACE_ENABLED', 'PayloadPlace::start_descent'),
('AP_MISSION_NAV_PAYLOAD_PLACE_ENABLED', ExtractFeatures.FindString('PayloadPlace')),
Expand Down

0 comments on commit 48f106a

Please sign in to comment.