mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-17 17:01:58 +08:00
Fix Arduino 'c' command
This commit is contained in:
@@ -39,7 +39,7 @@ void ODriveArduino::SetVelocity(int motor_number, float velocity, float current_
|
||||
}
|
||||
|
||||
void ODriveArduino::SetCurrent(int motor_number, float current) {
|
||||
serial_ << "c" << motor_number << " " << current << "\n";
|
||||
serial_ << "c " << motor_number << " " << current << "\n";
|
||||
}
|
||||
|
||||
float ODriveArduino::readFloat() {
|
||||
|
||||
Reference in New Issue
Block a user