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:
Julian Oes
2018-02-22 15:24:46 +01:00
parent abb067c788
commit 4cac6d1a44
3 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -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;