Skip to content

Commit

Permalink
sync turtlebot3_core
Browse files Browse the repository at this point in the history
  • Loading branch information
Darby Lim committed May 25, 2018
1 parent d008b6f commit 9bb2c68
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ void publishSensorStateMsg(void)
else
return;

sensor_state_msg.bumper = sensors.checkPushBumper();

sensor_state_msg.cliff = sensors.getIRsensorData();

// TODO
// sensor_state_msg.sonar = sensors.getSonarData();

sensor_state_msg.illumination = sensors.getIlluminationData();

sensor_state_msg.button = sensors.checkPushButton();

sensor_state_msg.torque = motor_driver.getTorque();
Expand Down Expand Up @@ -761,7 +770,7 @@ void sendDebuglog(void)
DEBUG_SERIAL.println("---------------------------------------");
DEBUG_SERIAL.println("EXTERNAL SENSORS");
DEBUG_SERIAL.println("---------------------------------------");
DEBUG_SERIAL.print("Bumper : "); DEBUG_SERIAL.println(sensors.getPushedBumper());
DEBUG_SERIAL.print("Bumper : "); DEBUG_SERIAL.println(sensors.checkPushBumper());
DEBUG_SERIAL.print("Cliff : "); DEBUG_SERIAL.println(sensors.getIRsensorData());
DEBUG_SERIAL.print("Sonar : "); DEBUG_SERIAL.println(sensors.getSonarData());
DEBUG_SERIAL.print("Illumination : "); DEBUG_SERIAL.println(sensors.getIlluminationData());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@

#define HARDWARE_VER "1.0.0"
#define SOFTWARE_VER "1.0.0"
#define FIRMWARE_VER "1.0.1"
#define FIRMWARE_VER "1.2.0"

#define CONTROL_MOTOR_SPEED_FREQUENCY 30 //hz
#define IMU_PUBLISH_FREQUENCY 200 //hz
#define CMD_VEL_PUBLISH_FREQUENCY 30 //hz
#define DRIVE_INFORMATION_PUBLISH_FREQUENCY 30 //hz
#define VERSION_INFORMATION_PUBLISH_FREQUENCY 1 //hz
#define DEBUG_LOG_FREQUENCY 2 //hz
#define DEBUG_LOG_FREQUENCY 10 //hz

#define WHEEL_NUM 2

Expand Down

0 comments on commit 9bb2c68

Please sign in to comment.