From be40bb12f148cb1aaa415ce9a0d3cf67c1e7e22e Mon Sep 17 00:00:00 2001 From: Ewoud Date: Thu, 20 Jun 2024 17:27:09 +0200 Subject: [PATCH] Motion Tracking: add modified main.cpp --- src/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index be1d3faf..18b8cdc9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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() { @@ -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(); and saveModel! @@ -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