Skip to content

Commit

Permalink
Motion Tracking: add modified main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed Jun 20, 2024
1 parent d256277 commit be40bb1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ AppModDemo *appModDemo;
#include "User/UserModHA.h"
UserModHA *hamod;
#endif
#ifdef STARBASE_USERMOD_MPU6050
#include "User/UserModMPU6050.h"
UserModMPU6050 *mpu6050;
#endif

//setup all modules
void setup() {
Expand All @@ -66,6 +70,9 @@ void setup() {
#ifdef STARBASE_USERMOD_HA
hamod = new UserModHA();
#endif
#ifdef STARBASE_USERMOD_MPU6050
mpu6050 = new UserModMPU6050();
#endif

//Reorder with care! this is the order in which setup and loop is executed
//If changed make sure mdlEnabled.chFun executes var["value"].to<JsonArray>(); and saveModel!
Expand All @@ -85,6 +92,9 @@ void setup() {
#ifdef STARBASE_USERMOD_HA
mdls->add(hamod); //no ui
#endif
#ifdef STARBASE_USERMOD_MPU6050
mdls->add(mpu6050);
#endif
mdls->add(mdl);
mdls->add(ui);
mdls->add(mdns); //no ui
Expand Down

0 comments on commit be40bb1

Please sign in to comment.