Add TrapezoidalMove to Arduino library ("t" ASCII command)

This commit is contained in:
Paul Guenette committed 2019-02-24 22:42:03 +01:00
1 parent 9786af0a25
commit a253da299f
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -42,6 +42,10 @@ void ODriveArduino::SetCurrent(int motor_number, float current) {
serial_ << "c " << motor_number << " " << current << "\n";
}
void ODriveArduino::TrapezoidalMove(int motor_number, float position){
serial_ << "t " << motor_number << " " << position << "\n";
}
float ODriveArduino::readFloat() {
return readString().toFloat();
}
+1 -1
View File
@@ -27,7 +27,7 @@ public:
void SetVelocity(int motor_number, float velocity);
void SetVelocity(int motor_number, float velocity, float current_feedforward);
void SetCurrent(int motor_number, float current);
void TrapezoidalMove(int motor_number, float position);
// General params
float readFloat();
int32_t readInt();