mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Scripting: enable AP_Scheduler for CubeOrange-periph-heavy
... we use the scehduler in AP_Motors, which is compiled when making heavy-periph
This commit is contained in:
parent
f44dd9605d
commit
d1de760ee4
@ -2927,6 +2927,9 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
// for set_and_print_new_error_message deprecate warning
|
// for set_and_print_new_error_message deprecate warning
|
||||||
fprintf(source, "#include <AP_Scripting/lua_scripts.h>\n");
|
fprintf(source, "#include <AP_Scripting/lua_scripts.h>\n");
|
||||||
|
fprintf(source, "\n");
|
||||||
|
// the generated source uses the Scehduler singleton:
|
||||||
|
fprintf(source, "#include <AP_Scheduler/AP_Scheduler.h>\n");
|
||||||
|
|
||||||
fprintf(source, "extern const AP_HAL::HAL& hal;\n");
|
fprintf(source, "extern const AP_HAL::HAL& hal;\n");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user