Skip to content

Commit b49c50e

Browse files
committed
Finish up Moonshot
Added all the extra arduinos to Moonshot.
1 parent 3a39630 commit b49c50e

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

ros_ws/src/arduino/motor/motor.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ const int ENCODER_PIN = 2;
7272
/**
7373
* @brief Pins used to control the Motor
7474
*/
75-
const int FORWARD_PWM_PIN = 5;
76-
const int REVERSE_PWM_PIN = 6;
77-
const int ENABLE_PIN = A3;
75+
const int FORWARD_PWM_PIN = 9;
76+
const int REVERSE_PWM_PIN = 10;
77+
const int ENABLE_PIN = 7;
7878

7979
/**
8080
* @brief Float used to scale the Speed to

ros_ws/src/control/launch/robot.launch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- Define arguments and defaults -->
33
<arg name="robot_addr" default="localhost"/>
44
<arg name="robot_launch" default="igvc.launch"/>
5-
<arg name="controller_type" default="360.yaml" />
5+
<arg name="controller_type" default="moga.yaml" />
66
<include file="$(find control)/launch/$(arg robot_launch)" />
77

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

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

3232
<!-- Sensing and mapping files -->
3333
<include file="$(find control)/launch/slam.launch"/>

ros_ws/src/control/param/controllers/360.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#POWER_BUTTON: 8
1414
#UP_DPAD: 13
1515
#DOWN_DPAD: 14
16-
#RIGHT_DPAD: 12
16+
#RIGHT_DPAD: 12sd
1717
#LEFT_DPAD: 11
1818

1919

ros_ws/src/control/param/controllers/moga.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ controller_type: moga
1313

1414
lin_vel_axis: 1
1515
ang_vel_axis: 2
16-
16+
conveyor_speed_forward: 4
17+
conveyor_speed_back: 5
1718
teleop_btn: 0
1819
standby_btn: 1
1920

2021
autonomous_btn: 3
2122
speed_inc_btn: 5
2223
speed_dec_btn: 4
2324
turbo_btn: 2
25+
26+
actuator_up: 13
27+
actuator_down: 14

0 commit comments

Comments
 (0)