Delta Robot example
Dependencies: BufferedSerial Eigen
Fork of TCPSocket_Example by
Diff: odrive.cpp
- Revision:
- 5:01e1e68309ae
- Parent:
- 4:778bc352c47f
diff -r 778bc352c47f -r 01e1e68309ae odrive.cpp --- a/odrive.cpp Sun Oct 07 19:40:12 2018 +0000 +++ b/odrive.cpp Mon Oct 15 18:30:20 2018 +0000 @@ -84,13 +84,13 @@ str += c; } timer.stop(); - buffered_pc.printf(str.c_str()); + //buffered_pc.printf(str.c_str()); return str; } float ODrive::readBattery(){ std::stringstream ss; - ss <<"r vbus_voltage\n" << '\n'; + ss <<"r vbus_voltage"<< '\n'; serial_.write((const uint8_t *)ss.str().c_str(),ss.str().length()); return readFloat();