Open cutlas62 opened 6 years ago
Hey cutlas62, that's good news. I am currently working on a leveling project also with a ESP NodeMCU. I have been trying to figure out how to implement the accel/gyro offsets so that it boots up to a known level position each time by saving the offsets from a "good" level and restoring them on boot. Do you have the .ino file posted that works with the above code? What modifications did you have to make from Kris's code to make it work in an ESP?
Hi kbloxsom,
I don't have a .ino file since I'm writing all my code in C for the ESP32 without the Arduino IDE. You can find the latest version of my code here (Note that it's not by far finished). The only difference from Kris' calibrateMPU9250 is how to update the accelerometer offset (the for loop I added above).
Thanks Carlos! I’ll have a look at your code. Thanks again for sharing.
Regards, Kim
On Sep 10, 2018, at 5:20 PM, Carlos notifications@github.com wrote:
Hi kbloxsom,
I don't have a .ino file since I'm writing all my code in C for the ESP32 without the Arduino IDE. You can find the latest version of my code here (Note that it's not by far finished). The only difference from Kris' calibrateMPU9250 is how to update the accelerometer offset (the for loop I added above).
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Hi Kris,
I was using your MPU9250BasicAHRS_t3.ino sketch when I saw your comment about the accelerometer offset registers not working properly. (Line 908) I was able to fix this problem and both Gyroscope and Accelerometer are correctly calibrated:
Please check it and give me your opinion. It's working on my ESP32.
Thank you for your awesome work!