Skip to content

Commit

Permalink
fixed backward driving issue; experimental suport for raspberry pi ca…
Browse files Browse the repository at this point in the history
…mera
  • Loading branch information
billtyler committed Feb 8, 2016
1 parent 135b68d commit 6de8614
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
1 change: 0 additions & 1 deletion src/nomad/nomad.launch
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<launch>
<node name="joy" pkg="joy" type="joy_node"/>
<node name="nomad_control" pkg="nomad" type="nomad_control.py"/>
<node name="nomad_drive" pkg="nomad" type="nomad_drive.py" output="screen"/>
</launch>
4 changes: 2 additions & 2 deletions src/nomad/nomad_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ def drive_wheels(msg):
if m1 > 0:
roboclaw.ForwardM1(0x80, m1)
else:
roboclaw.BackwardM1(0x80, m1)
roboclaw.BackwardM1(0x80, abs(m1))

if m2 > 0:
roboclaw.ForwardM2(0x80, m2)
else:
roboclaw.BackwardM2(0x80, m2)
roboclaw.BackwardM2(0x80, abs(m2))


def get_diag_info(input_string):
Expand Down
Binary file modified src/nomad/roboclaw.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions src/rosberrypi_cam
Submodule rosberrypi_cam added at 4814a6

0 comments on commit 6de8614

Please sign in to comment.