That's great but you need to write a script like below (DJ's code for the mpu6050) in order to use it the way you saw on the video DJ made of JD getting up after falling over... This is for the MPU6050 not for the MPU9150, however the code can be easily adapted to work with the MPU9150
ControlCommand("MPU6050", Init)
sleep(100)
:loop
IF ($AutoPositionStatus = true)
print("AutoPositioner already running...")
sleep(2000)
goto(loop)
ENDIF
ControlCommand("MPU6050", RunOnce)
print ("x: " + $MPUAccelX)
print ("y: " + $MPUAccelY)
IF ($MPUAccelY > 8000)
print("Getting up from front")
ControlCommand("Auto Position", AutoPositionAction, "Getup")
waitfor($AutoPositionStatus = false)
ELSEIF ($MPUAccelY < -8000)
print("Getting up from rear")
ControlCommand("Auto Position", AutoPositionAction, "stand from sit")
waitfor($AutoPositionStatus = false)
ENDIF
sleep(1000)
goto(loop)
I know... the example is for the mpu6050 ... but tweaking it a little and it will work with the 9150,,, Download the Example Project from the cloud for JD and the MPU650....
Are you sure you are using it properly? Have you initialized it? Show me your script?
this is what the (?) mark chows
That's great but you need to write a script like below (DJ's code for the mpu6050) in order to use it the way you saw on the video DJ made of JD getting up after falling over... This is for the MPU6050 not for the MPU9150, however the code can be easily adapted to work with the MPU9150
mpu 6050? in his video and text it chows mpu 9150 but i try yours.
I know... the example is for the mpu6050 ... but tweaking it a little and it will work with the 9150,,, Download the Example Project from the cloud for JD and the MPU650....
withs one do i have then?
Based on what is available for purchase in the store, I would say the MPU9150.
so i choose the mpu 9150 in ARC?