Skip to content

Commit

Permalink
wip: remove offset for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalzauberzeug committed Jan 20, 2025
1 parent 0881ccb commit 7645442
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rosys/hardware/imu.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,16 @@ def handle_core_output(self, time: float, words: list[str]) -> None:
if self.gyro_calibration < 1.0:
return

self.rotation = rotation * self.offset_rotation.T
# TODO: refactor
# self.rotation = rotation * self.offset_rotation.T
self.rotation = rotation
self.emit_measurement()


class ImuSimulation(Imu, ModuleSimulation):

def simulate_measurement(self, rotation: Rotation) -> None:
self.rotation = rotation * self.offset_rotation.T
# TODO: refactor
# self.rotation = rotation * self.offset_rotation.T
self.rotation = rotation
self.emit_measurement()

0 comments on commit 7645442

Please sign in to comment.