diff --git a/src/systemcmds/motor_ramp/motor_ramp.cpp b/src/systemcmds/motor_ramp/motor_ramp.cpp index cf30b76b7c..4d42026a4e 100644 --- a/src/systemcmds/motor_ramp/motor_ramp.cpp +++ b/src/systemcmds/motor_ramp/motor_ramp.cpp @@ -43,6 +43,7 @@ #include #include #include +#include #include #include #include @@ -79,7 +80,8 @@ static float _ramp_time; static int _min_pwm; static int _max_pwm; static Mode _mode; -static char *_mode_c; +static const char *_mode_c; +static const char *_pwm_output_dev = "/dev/pwm_output0"; /** * motor_ramp management function. @@ -124,16 +126,17 @@ $ fw_att_control stop When starting, a background task is started, runs for several seconds (as specified), then exits. -Note: this command currently only supports the `/dev/pwm_output0` output. - ### Example -$ motor_ramp sine 1100 0.5 +$ motor_ramp sine -a 1100 -r 0.5 )DESCR_STR"); PRINT_MODULE_USAGE_NAME_SIMPLE("motor_ramp", "command"); PRINT_MODULE_USAGE_ARG("ramp|sine|square", "mode", false); - PRINT_MODULE_USAGE_ARG("