forked from Archive/PX4-Autopilot
More tab fixes
This commit is contained in:
parent
33c20e15a2
commit
2448e2adbc
|
@ -183,8 +183,8 @@ float RoboClaw::getMotorPosition(e_motor motor)
|
|||
} else if (motor == MOTOR_2) {
|
||||
return _motor2Position;
|
||||
} else {
|
||||
warnx("Unknown motor value passed to RoboClaw::getMotorPosition");
|
||||
return NAN;
|
||||
warnx("Unknown motor value passed to RoboClaw::getMotorPosition");
|
||||
return NAN;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -195,8 +195,8 @@ float RoboClaw::getMotorSpeed(e_motor motor)
|
|||
} else if (motor == MOTOR_2) {
|
||||
return _motor2Speed;
|
||||
} else {
|
||||
warnx("Unknown motor value passed to RoboClaw::getMotorPosition");
|
||||
return NAN;
|
||||
warnx("Unknown motor value passed to RoboClaw::getMotorPosition");
|
||||
return NAN;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -603,7 +603,7 @@ bool handle_command(struct vehicle_status_s *status, const struct safety_s *safe
|
|||
// XXX TODO
|
||||
}
|
||||
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
|
||||
int commander_thread_main(int argc, char *argv[])
|
||||
|
|
|
@ -181,13 +181,13 @@ int gpio_led_main(int argc, char *argv[])
|
|||
} else {
|
||||
gpio_led_started = true;
|
||||
warnx("start, using pin: %s", pin_name);
|
||||
exit(0);
|
||||
exit(0);
|
||||
}
|
||||
} else if (!strcmp(argv[1], "stop")) {
|
||||
if (gpio_led_started) {
|
||||
gpio_led_started = false;
|
||||
warnx("stop");
|
||||
exit(0);
|
||||
exit(0);
|
||||
} else {
|
||||
errx(1, "not running");
|
||||
}
|
||||
|
|
|
@ -193,12 +193,12 @@ ramtron_attach(void)
|
|||
errx(1, "failed to initialize mtd driver");
|
||||
|
||||
int ret = mtd_dev->ioctl(mtd_dev, MTDIOC_SETSPEED, (unsigned long)10*1000*1000);
|
||||
if (ret != OK) {
|
||||
// FIXME: From the previous warnx call, it looked like this should have been an errx instead. Tried
|
||||
// that but setting the bug speed does fail all the time. Which was then exiting and the board would
|
||||
// not run correctly. So changed to warnx.
|
||||
warnx("failed to set bus speed");
|
||||
}
|
||||
if (ret != OK) {
|
||||
// FIXME: From the previous warnx call, it looked like this should have been an errx instead. Tried
|
||||
// that but setting the bug speed does fail all the time. Which was then exiting and the board would
|
||||
// not run correctly. So changed to warnx.
|
||||
warnx("failed to set bus speed");
|
||||
}
|
||||
|
||||
attached = true;
|
||||
}
|
||||
|
|
|
@ -372,7 +372,7 @@ int test_mixer(int argc, char *argv[])
|
|||
}
|
||||
|
||||
warnx("SUCCESS: No errors in mixer test");
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue