mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-11-08 12:38:43 +08:00
Add TrapezoidalMove to Arduino library ("t" ASCII command)
This commit is contained in:
1 parent
9786af0a25
commit
a253da299f
2 files changed
+5
-1
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user