mirror of https://github.com/ArduPilot/ardupilot
Rover: add and use HAL_BUTTON_ENABLE
This commit is contained in:
parent
52eb168ca5
commit
6aed71b75d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue