Skip to content

Commit

Permalink
Finish up Moonshot
Browse files Browse the repository at this point in the history
Added all the extra arduinos to Moonshot.
  • Loading branch information
matthewia94 committed May 1, 2016
1 parent 3a39630 commit b49c50e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
6 changes: 3 additions & 3 deletions ros_ws/src/arduino/motor/motor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ const int ENCODER_PIN = 2;
/**
* @brief Pins used to control the Motor
*/
const int FORWARD_PWM_PIN = 5;
const int REVERSE_PWM_PIN = 6;
const int ENABLE_PIN = A3;
const int FORWARD_PWM_PIN = 9;
const int REVERSE_PWM_PIN = 10;
const int ENABLE_PIN = 7;

/**
* @brief Float used to scale the Speed to
Expand Down
10 changes: 5 additions & 5 deletions ros_ws/src/control/launch/robot.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- Define arguments and defaults -->
<arg name="robot_addr" default="localhost"/>
<arg name="robot_launch" default="igvc.launch"/>
<arg name="controller_type" default="360.yaml" />
<arg name="controller_type" default="moga.yaml" />
<include file="$(find control)/launch/$(arg robot_launch)" />

<!-- Connect to the specified master -->
Expand All @@ -24,10 +24,10 @@
<node pkg="control" type="motor_controller_node" name="motor_controller_node"/>

<!-- Arduino Stuff -->
<node name="arduino_right" pkg="rosserial_python" type="serial_node.py" args="/dev/ttyACM0"/>
<node name="arduino_left" pkg="rosserial_python" type="serial_node.py" args="/dev/ttyACM1"/>
<node name="arduino_conv" pkg="rosserial_python" type="serial_node.py" args="/dev/ttyACM3"/>
<node name="arduino_dump" pkg="rosserial_python" type="serial_node.py" args="/dev/ttyACM4"/>
<node name="arduino_right" pkg="rosserial_python" type="serial_node.py" args="/dev/ttyUSB1"/>
<node name="arduino_left" pkg="rosserial_python" type="serial_node.py" args="/dev/ttyUSB0"/>
<node name="arduino_conv" pkg="rosserial_python" type="serial_node.py" args="/dev/ttyUSB2"/>
<node name="arduino_dump" pkg="rosserial_python" type="serial_node.py" args="/dev/ttyUSB3"/>

<!-- Sensing and mapping files -->
<include file="$(find control)/launch/slam.launch"/>
Expand Down
2 changes: 1 addition & 1 deletion ros_ws/src/control/param/controllers/360.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#POWER_BUTTON: 8
#UP_DPAD: 13
#DOWN_DPAD: 14
#RIGHT_DPAD: 12
#RIGHT_DPAD: 12sd
#LEFT_DPAD: 11


Expand Down
6 changes: 5 additions & 1 deletion ros_ws/src/control/param/controllers/moga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ controller_type: moga

lin_vel_axis: 1
ang_vel_axis: 2

conveyor_speed_forward: 4
conveyor_speed_back: 5
teleop_btn: 0
standby_btn: 1

autonomous_btn: 3
speed_inc_btn: 5
speed_dec_btn: 4
turbo_btn: 2

actuator_up: 13
actuator_down: 14

0 comments on commit b49c50e

Please sign in to comment.