Skip to content

Commit

Permalink
AP_Scripting: enable AP_Scheduler for CubeOrange-periph-heavy
Browse files Browse the repository at this point in the history
... we use the scehduler in AP_Motors, which is compiled when making heavy-periph
  • Loading branch information
peterbarker authored and tridge committed May 1, 2024
1 parent f44dd96 commit d1de760
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Scripting/generator/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2927,6 +2927,9 @@ int main(int argc, char **argv) {

// for set_and_print_new_error_message deprecate warning
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");

Expand Down

0 comments on commit d1de760

Please sign in to comment.