Rover: add and use HAL_BUTTON_ENABLE

This commit is contained in:
Peter Barker 2021-08-12 13:38:23 +10:00 committed by Andrew Tridgell
parent 52eb168ca5
commit 6aed71b75d
2 changed files with 4 additions and 0 deletions

View File

@ -371,9 +371,11 @@ const AP_Param::Info Rover::var_info[] = {
// @Path: ../libraries/AP_Notify/AP_Notify.cpp
GOBJECT(notify, "NTF_", AP_Notify),
#if HAL_BUTTON_ENABLED
// @Group: BTN_
// @Path: ../libraries/AP_Button/AP_Button.cpp
GOBJECT(button, "BTN_", AP_Button),
#endif
// @Group:
// @Path: Parameters.cpp

View File

@ -99,7 +99,9 @@ const AP_Scheduler::Task Rover::scheduler_tasks[] = {
#endif
SCHED_TASK_CLASS(AP_InertialSensor, &rover.ins, periodic, 400, 200),
SCHED_TASK_CLASS(AP_Scheduler, &rover.scheduler, update_logging, 0.1, 200),
#if HAL_BUTTON_ENABLED
SCHED_TASK_CLASS(AP_Button, &rover.button, update, 5, 200),
#endif
#if STATS_ENABLED == ENABLED
SCHED_TASK(stats_update, 1, 200),
#endif