Skip to content

Commit

Permalink
Created Config for Feather on rosserial
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNextTesla committed Mar 22, 2023
1 parent fde874a commit 1d3987b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ GPS_PORT=/dev/null
WEBCAM_PORT=/dev/null
RLSENSE_PORT=/dev/null
TEENSY_PORT=/dev/null
FEATHER_PORT=/dev/null
1 change: 1 addition & 0 deletions .env.prod
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ GPS_PORT_AUX=/dev/null
WEBCAM_PORT=/dev/null
RLSENSE_PORT=/dev/bus/usb
TEENSY_PORT=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AD01TF04-if00-port0
FEATHER_PORT=/dev/serial/by-id/usb-Adafruit_Adafruit_Feather_M0_77D70E005154384153202020FF18250B-if00
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
- "${TEENSY_PORT:-/dev/null}:/dev/ttyUSB0"
- "${WEBCAM_PORT:-/dev/null}:/dev/ttyUSB1"
- "${GPS_PORT:-/dev/null}:/dev/ttyACM0"
- "${FEATHER_PORT:-/dev/null}:/dev/ttyACM1"
stdin_open: true # docker run -i
tty: true # docker run -t
ports:
Expand Down
3 changes: 1 addition & 2 deletions firmware/lora_rtcm_listen/src/lora_rtcm_listen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define LORA_ROS_NODE "rtcm"
#define LORA_FIXED_FREQ 902.5

#define USE_USBCON
#define DATA_SERIAL Serial1

#include <Arduino.h>
Expand Down Expand Up @@ -106,8 +107,6 @@ void setup() {
// Set up RS232 data
DATA_SERIAL.begin(115200);

delay(1000);

// generate LFSR indexes (psuedorandom non-repeating [0, 63])
memset(&channel_indices[0], 0, sizeof(channel_indices));
channel_indices[1] = 29;
Expand Down
2 changes: 1 addition & 1 deletion rb_ws/src/buggy/INS_params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# port is the main port that the device will communicate over. For all devices except the GQ7, this is the only available port.
# aux_port is only available for the GQ7 and is only needed when streaming RTCM corrections to the device from ROS, or if you want to publish NMEA sentences from this node
port : "/dev/ttyACM0"
aux_port : "/dev/ttyACM1"
aux_port : "/dev/null"
baudrate : 115200
debug : False
diagnostics : False
Expand Down
10 changes: 7 additions & 3 deletions rb_ws/src/buggy/launch/main.launch
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
<arg name="tf_prefix" value="d455" />
</include>
<node name="serial_node" pkg="rosserial_python" type="serial_node.py">
<param name="port" type="string" value="/dev/ttyUSB0"/>
<param name="baud" type="int" value="1000000"/>
</node>
<param name="port" type="string" value="/dev/ttyUSB0"/>
<param name="baud" type="int" value="1000000"/>
</node>
<node name="serial_node2" pkg="rosserial_python" type="serial_node.py">
<param name="port" type="string" value="/dev/ttyACM1"/>
<param name="baud" type="int" value="115200"/>
</node>
</group>
<node name="foxglove" pkg="foxglove_bridge" type="foxglove_bridge" />
<node name="asset_server" pkg="buggy" type="asset_server.py" args="--directory='/rb_ws/src/buggy/assets'" />
Expand Down

0 comments on commit 1d3987b

Please sign in to comment.