autotest: fixed xAccel calculation in fakepos.py

This commit is contained in:
Andrew Tridgell 2012-02-24 14:14:58 +11:00
parent 55e33c3359
commit 57971e0ddf
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ if True:
while True:
xAccel = sin(radians(pitchDeg)) * cos(radians(rollDeg))
xAccel = sin(radians(pitchDeg))
yAccel = -sin(radians(rollDeg)) * cos(radians(pitchDeg))
zAccel = -cos(radians(rollDeg)) * cos(radians(pitchDeg))
scale = 9.81 / sqrt((xAccel*xAccel)+(yAccel*yAccel)+(zAccel*zAccel))