SITL: fixed the normalisation of the DCM matrix in the multicopter sim

This commit is contained in:
Andrew Tridgell 2012-07-04 15:59:15 +10:00
parent 6cf2e2fa13
commit b3c9cdb353
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ class MultiCopter(Aircraft):
# update attitude
self.dcm.rotate(self.gyro * delta_time)
self.dcm.normalize()
# air resistance
air_resistance = - self.velocity * (self.gravity/self.terminal_velocity)