mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-25 09:13:57 -04:00
AP_Vehicle: rename GENERATOR_ENABLED to HAL_GENERATOR_ENABLED
This commit is contained in:
parent
43469955a9
commit
d86e2792fd
@ -49,7 +49,7 @@ const AP_Param::GroupInfo AP_Vehicle::var_info[] = {
|
|||||||
AP_SUBGROUPINFO(frsky_parameters, "FRSKY_", 6, AP_Vehicle, AP_Frsky_Parameters),
|
AP_SUBGROUPINFO(frsky_parameters, "FRSKY_", 6, AP_Vehicle, AP_Frsky_Parameters),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GENERATOR_ENABLED
|
#if HAL_GENERATOR_ENABLED
|
||||||
// @Group: GEN_
|
// @Group: GEN_
|
||||||
// @Path: ../AP_Generator/AP_Generator.cpp
|
// @Path: ../AP_Generator/AP_Generator.cpp
|
||||||
AP_SUBGROUPINFO(generator, "GEN_", 7, AP_Vehicle, AP_Generator),
|
AP_SUBGROUPINFO(generator, "GEN_", 7, AP_Vehicle, AP_Generator),
|
||||||
@ -171,7 +171,7 @@ void AP_Vehicle::setup()
|
|||||||
|
|
||||||
send_watchdog_reset_statustext();
|
send_watchdog_reset_statustext();
|
||||||
|
|
||||||
#if GENERATOR_ENABLED
|
#if HAL_GENERATOR_ENABLED
|
||||||
generator.init();
|
generator.init();
|
||||||
#endif
|
#endif
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "ArduPilot Ready");
|
gcs().send_text(MAV_SEVERITY_INFO, "ArduPilot Ready");
|
||||||
@ -236,7 +236,7 @@ const AP_Scheduler::Task AP_Vehicle::scheduler_tasks[] = {
|
|||||||
#if HAL_WITH_ESC_TELEM
|
#if HAL_WITH_ESC_TELEM
|
||||||
SCHED_TASK_CLASS(AP_ESC_Telem, &vehicle.esc_telem, update, 10, 50),
|
SCHED_TASK_CLASS(AP_ESC_Telem, &vehicle.esc_telem, update, 10, 50),
|
||||||
#endif
|
#endif
|
||||||
#if GENERATOR_ENABLED
|
#if HAL_GENERATOR_ENABLED
|
||||||
SCHED_TASK_CLASS(AP_Generator, &vehicle.generator, update, 10, 50),
|
SCHED_TASK_CLASS(AP_Generator, &vehicle.generator, update, 10, 50),
|
||||||
#endif
|
#endif
|
||||||
#if OSD_ENABLED
|
#if OSD_ENABLED
|
||||||
|
@ -339,7 +339,7 @@ protected:
|
|||||||
AP_MSP msp;
|
AP_MSP msp;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GENERATOR_ENABLED
|
#if HAL_GENERATOR_ENABLED
|
||||||
AP_Generator generator;
|
AP_Generator generator;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user