mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 00:33:35 +08:00
tune_control: added define for tune strength
This adds a define for the tune strength instead of hard-coding it with a magic number.
This commit is contained in:
@@ -98,7 +98,7 @@ tune_control_main(int argc, char *argv[])
|
||||
unsigned int value;
|
||||
tune_control_s tune_control = {};
|
||||
tune_control.tune_id = 0;
|
||||
tune_control.strength = 40;
|
||||
tune_control.strength = tune_control_s::STRENGTH_NORMAL;
|
||||
|
||||
while ((ch = px4_getopt(argc, argv, "f:d:t:m:s:", &myoptind, &myoptarg)) != EOF) {
|
||||
switch (ch) {
|
||||
@@ -151,7 +151,7 @@ tune_control_main(int argc, char *argv[])
|
||||
tune_control.strength = value;
|
||||
|
||||
} else {
|
||||
tune_control.strength = 40;
|
||||
tune_control.strength = tune_control_s::STRENGTH_NORMAL;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user