ENSTABretagneRobotics / razor_imu_9dof

A ROS driver and firmware to connect to Sparkfun OpenLog Artemis, 9DoF Razor IMU M0, 9DOF Razor IMU and 9DOF Sensor Stick. These boards consists of 3 sensors: magnetic, gyro and acceleration sensor.
BSD 3-Clause "New" or "Revised" License
92 stars 114 forks source link

How to improve the baud rate in ros system? #32

Closed MingPuKJ closed 7 years ago

MingPuKJ commented 7 years ago

Hi Everyone: When I change the baud rate to 115200 ( default is 57600 ) thought modifying "ser = serial.Serial(port=port, baudrate=57600, timeout=1)" to "ser = serial.Serial(port=port, baudrate=115200, timeout=1)" in imu_node.py, but there is no data from device, can you tell me how to change the baud rate correctly ? Thanks!

KristofRobot commented 7 years ago

You also have to change the baudrate of the firmware in https://github.com/KristofRobot/razor_imu_9dof/blob/indigo-devel/src/Razor_AHRS/Razor_AHRS.ino

#define OUTPUT__BAUD_RATE 57600