Skip to content

Commit

Permalink
remove unnecessary pi
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes-Thiel committed Feb 4, 2025
1 parent cc16f44 commit eb1e25a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions field_friend/hardware/field_friend.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

class FieldFriend(rosys.hardware.Robot):
MOTOR_GEAR_RATIO = 12.52
WHEEL_DIAMETER = 0.041 * 17 / np.pi
M_PER_TICK = WHEEL_DIAMETER * np.pi / MOTOR_GEAR_RATIO
WHEEL_DIAMETER = 0.041 * 17
M_PER_TICK = WHEEL_DIAMETER / MOTOR_GEAR_RATIO
WORK_X = 0.118
WORK_Y = 0.0
DRILL_RADIUS = 0.025
Expand Down
5 changes: 2 additions & 3 deletions field_friend/hardware/field_friend_hardware.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import numpy as np
import rosys
from rosys.hardware import ImuHardware

Expand Down Expand Up @@ -34,8 +33,8 @@ def __init__(self) -> None:
self.MOTOR_GEAR_RATIO: float = config_params['motor_gear_ratio']
self.THOOTH_COUNT: int = config_params['thooth_count']
self.PITCH: float = config_params['pitch']
self.WHEEL_DIAMETER: float = self.THOOTH_COUNT * self.PITCH / np.pi
self.M_PER_TICK: float = self.WHEEL_DIAMETER * np.pi / self.MOTOR_GEAR_RATIO
self.WHEEL_DIAMETER: float = self.THOOTH_COUNT * self.PITCH
self.M_PER_TICK: float = self.WHEEL_DIAMETER / self.MOTOR_GEAR_RATIO
self.WHEEL_DISTANCE: float = config_params['wheel_distance']
self.ANTENNA_OFFSET: float = config_params['antenna_offset']
self.WORK_X: float
Expand Down
5 changes: 2 additions & 3 deletions field_friend/hardware/field_friend_simulation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import numpy as np
import rosys
from rosys.hardware import ImuSimulation

Expand All @@ -24,8 +23,8 @@ def __init__(self, robot_id) -> None:
self.MOTOR_GEAR_RATIO = config_params['motor_gear_ratio']
self.THOOTH_COUNT = config_params['thooth_count']
self.PITCH = config_params['pitch']
self.WHEEL_DIAMETER = self.THOOTH_COUNT * self.PITCH / np.pi
self.M_PER_TICK = self.WHEEL_DIAMETER * np.pi / self.MOTOR_GEAR_RATIO
self.WHEEL_DIAMETER = self.THOOTH_COUNT * self.PITCH
self.M_PER_TICK = self.WHEEL_DIAMETER / self.MOTOR_GEAR_RATIO
self.WHEEL_DISTANCE = config_params['wheel_distance']
tool = config_params['tool']
if tool in ['tornado', 'weed_screw', 'none']:
Expand Down

0 comments on commit eb1e25a

Please sign in to comment.