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 1cd8c54f21
commit 61f325713e
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)