Rod
USA
For | ARC |
Author | Rod |
Created | |
Last updated |
This JD example uses the EZ-Bit MPU6050, which is an accelerometer, gyro and temperature sensor available in the ez-robot store.
The script "Update Gyro" is called when connection occures. The "Update Gyro" script will initialize the MPU6050 and continue to loop while checking for two things...
The script checks if an Auto Position is currently running. If so, it restarts the loop
The script then checks to see if the accelerometer data is outside of the "standing" range. If so, it executes the respective Auto Position to stand up. Either from the Front or Rear.
enjoy your JD!