Skip to content

Commit

Permalink
Co-authored-by: Lucien Morey <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
outsidermm committed Jan 9, 2024
1 parent b8b4544 commit f0f8eae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/chassis.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ def set(self, desired_state: SwerveModuleState):
print(f"pos: {target_angle / math.tau}")
self.steer_request = PositionDutyCycle(target_angle / math.tau)
self.steer.set_control(self.steer_request)
print(f"steer {self.steer.get_velocity()}")
print(
f"steer {self.steer_request.with_position(target_angle / math.tau).position}"
)

# rescale the speed target based on how close we are to being correctly aligned
target_speed = self.state.speed * math.cos(target_displacement) ** 2
Expand Down

0 comments on commit f0f8eae

Please sign in to comment.