diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-01 13:14:30 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-01 13:14:30 +0100 |
commit | 99a4724ef166d4ce71d873cb58229130fdb2d219 (patch) | |
tree | 019f571da40223c89667904dceeaad7fc18323f3 /src/drivers/px4io/px4io.cpp | |
parent | f7d875d58d1286f9a3c63482772f4addbaf74eb0 (diff) | |
download | px4-firmware-99a4724ef166d4ce71d873cb58229130fdb2d219.tar.gz px4-firmware-99a4724ef166d4ce71d873cb58229130fdb2d219.tar.bz2 px4-firmware-99a4724ef166d4ce71d873cb58229130fdb2d219.zip |
IO driver: Fix naming of safety command line argument
Diffstat (limited to 'src/drivers/px4io/px4io.cpp')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index 3b42afb6c..24ece4298 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -3267,19 +3267,19 @@ px4io_main(int argc, char *argv[]) exit(0); } - if (!strcmp(argv[1], "safety_arm")) { + if (!strcmp(argv[1], "safety_off")) { int ret = g_dev->ioctl(NULL, PWM_SERVO_SET_FORCE_SAFETY_OFF, 0); if (ret != OK) { - printf("failed to arm px4io\n"); + printf("failed to disable safety\n"); exit(1); } exit(0); } - if (!strcmp(argv[1], "safety_disarm")) { + if (!strcmp(argv[1], "safety_on")) { int ret = g_dev->ioctl(NULL, PWM_SERVO_SET_FORCE_SAFETY_ON, 0); if (ret != OK) { - printf("failed to disarm px4io\n"); + printf("failed to enable safety\n"); exit(1); } exit(0); @@ -3412,6 +3412,6 @@ px4io_main(int argc, char *argv[]) out: errx(1, "need a command, try 'start', 'stop', 'status', 'test', 'monitor', 'debug <level>',\n" - "'recovery', 'limit <rate>', 'current', 'bind', 'checkcrc', 'safety_arm', 'safety_disarm',\n" + "'recovery', 'limit <rate>', 'current', 'bind', 'checkcrc', 'safety_on', 'safety_off',\n" "'forceupdate', 'update', 'sbus1_out', 'sbus2_out', 'rssi_analog' or 'rssi_pwm'"); } |