Skip to content

Commit

Permalink
Update dbw_vel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdekhterman authored Nov 7, 2024
1 parent 745f8e2 commit a548de1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dbw/dbw/dbw_vel.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def __init__(self):

self.ang_vel_step_size = 1/1024
self.ang_vel_min = -31.25 # rad/s
self.ang_vel_eff_max = 31.25 # rad/s
self.ang_vel_eff_min = 0.5 # rad/s
self.ang_vel_eff_max = 0.5 # rad/s

self.lin_percent_range = 100.0
self.ang_percent_range = 200.0
Expand All @@ -37,7 +38,7 @@ def __init__(self):
self.lin_spd_range = self.lin_vel_eff_max / self.lin_vel_step_size

self.ang_offset = abs(self.ang_vel_min / self.ang_vel_step_size)
self.ang_spd_range = (self.ang_vel_eff_max - self.ang_vel_min) / self.ang_vel_step_size
self.ang_spd_range = (self.ang_vel_eff_max - self.ang_vel_eff_min) / self.ang_vel_step_size

# can messages definations
# sent messages (arbitration_id = priority 0x18 & pgn # in hexidecimal & device address in hexicemial, data = initial hex command byte, the remaining bits are defaults with unassigned bytes being set to 0xFF or 0x00 arbitrary
Expand Down

0 comments on commit a548de1

Please sign in to comment.