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:
Peter Barker 2024-05-01 14:44:47 +10:00 committed by Andrew Tridgell
parent f44dd9605d
commit d1de760ee4
1 changed files with 3 additions and 0 deletions

View File

@ -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");