Skip to content

Commit

Permalink
namespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
justbuchanan committed Jun 5, 2016
1 parent fbd00e8 commit 3b41f54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion firmware/common2015/utils/rtp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct RobotStatusMessage {
* is 0.100546875, but this has been adjusted after testing to the value
* below.
*/
const float BATTERY_READING_SCALE_FACTOR = 0.09884;
static constexpr float BATTERY_READING_SCALE_FACTOR = 0.09884;
uint8_t battVoltage;

uint8_t ballSenseStatus : 2;
Expand Down
2 changes: 1 addition & 1 deletion soccer/radio/USBRadio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void USBRadio::handleRxData(uint8_t* buf) {
packet.set_hardware_version(RJ2015);

// battery voltage
packet.set_battery(msg->battVoltage * rtp::BATTERY_READING_SCALE_FACTOR);
packet.set_battery(msg->battVoltage * rtp::RobotStatusMessage::BATTERY_READING_SCALE_FACTOR);

// ball sense
packet.set_ball_sense_status(BallSenseStatus(msg->ballSenseStatus));
Expand Down

0 comments on commit 3b41f54

Please sign in to comment.