mirror of
https://github.com/apirrone/Open_Duck_Mini_Runtime.git
synced 2025-09-02 11:13:55 +00:00
update
This commit is contained in:
parent
82a176af16
commit
44bccb38c8
1 changed files with 6 additions and 0 deletions
|
@ -119,6 +119,12 @@ class Imu:
|
|||
print("[IMU]:", e)
|
||||
continue
|
||||
|
||||
if gyro is None or raw_orientation is None:
|
||||
continue
|
||||
|
||||
if gyro.any() is None or raw_orientation.any() is None:
|
||||
continue
|
||||
|
||||
# Converting to correct axes
|
||||
# euler = self.convert_axes(euler)
|
||||
euler[1] -= np.deg2rad(self.pitch_bias)
|
||||
|
|
Loading…
Reference in a new issue