mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
added motor_ramp to v2 config
This commit is contained in:
@@ -68,6 +68,7 @@ set(config_module_list
|
|||||||
systemcmds/ver
|
systemcmds/ver
|
||||||
#systemcmds/sd_bench
|
#systemcmds/sd_bench
|
||||||
#systemcmds/tests
|
#systemcmds/tests
|
||||||
|
systemcmds/motor_ramp
|
||||||
|
|
||||||
#
|
#
|
||||||
# General system control
|
# General system control
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ int motor_ramp_main(int argc, char *argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
_ramp_time = strtof(argv[2], NULL);
|
_ramp_time = atof(argv[2]);
|
||||||
|
|
||||||
if (!(_ramp_time > 0)) {
|
if (!(_ramp_time > 0)) {
|
||||||
usage("ramp time must be greater than 0");
|
usage("ramp time must be greater than 0");
|
||||||
|
|||||||
Reference in New Issue
Block a user