Fix ::run_state method (wait_for_idle instead of idle) and better vel_limit setting in .ino sketch example

This commit is contained in:
PAJohnson
2020-10-14 15:18:37 -04:00
parent 5d42a68e71
commit bd51fca58b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ int32_t ODriveArduino::readInt() {
bool ODriveArduino::run_state(int axis, int requested_state, bool wait_for_idle, float timeout) {
int timeout_ctr = (int)(timeout * 10.0f);
serial_ << "w axis" << axis << ".requested_state " << requested_state << '\n';
if (wait) {
if (wait_for_idle) {
do {
delay(100);
serial_ << "r axis" << axis << ".current_state\n";