mirror of https://github.com/ArduPilot/ardupilot
autotest: fixed xAccel calculation in fakepos.py
This commit is contained in:
parent
55e33c3359
commit
57971e0ddf
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue