Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-tuning of angular rates and attitude controllers (MC version) #18311

Merged
merged 10 commits into from Oct 2, 2021
1 change: 1 addition & 0 deletions ROMFS/px4fmu_common/init.d/rc.mc_apps
Expand Up @@ -57,6 +57,7 @@ mc_rate_control start
# Start Multicopter Attitude Controller.
#
mc_att_control start
mc_autotune_attitude_control start

#
# Start Multicopter Position Controller.
Expand Down
2 changes: 1 addition & 1 deletion Tools/px4moduledoc/srcparser.py
Expand Up @@ -14,7 +14,7 @@ class ModuleDocumentation(object):
# If you add categories or subcategories, they also need to be added to the
# TOC in https://github.com/PX4/Devguide/blob/master/en/SUMMARY.md
valid_categories = ['driver', 'estimator', 'controller', 'system',
'communication', 'command', 'template', 'simulation']
'communication', 'command', 'template', 'simulation', 'autotune']
valid_subcategories = ['', 'distance_sensor', 'imu', 'airspeed_sensor',
'magnetometer', 'baro', 'optical_flow']

Expand Down
1 change: 1 addition & 0 deletions boards/airmind/mindpx-v2/default.cmake
Expand Up @@ -69,6 +69,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
2 changes: 1 addition & 1 deletion boards/ark/can-gps/debug.cmake
Expand Up @@ -33,6 +33,6 @@ px4_add_board(
topic_listener
tune_control
uorb
ver
#ver
work_queue
)
3 changes: 2 additions & 1 deletion boards/ark/can-gps/default.cmake
Expand Up @@ -4,7 +4,8 @@ px4_add_board(
PLATFORM nuttx
TOOLCHAIN arm-none-eabi
ARCHITECTURE cortex-m4
#CONSTRAINED_FLASH
CONSTRAINED_FLASH
NO_HELP
CONSTRAINED_MEMORY
EXTERNAL_METADATA
ROMFSROOT cannode
Expand Down
2 changes: 1 addition & 1 deletion boards/ark/can-rtk-gps/debug.cmake
Expand Up @@ -33,6 +33,6 @@ px4_add_board(
topic_listener
tune_control
uorb
ver
#ver
work_queue
)
3 changes: 2 additions & 1 deletion boards/ark/can-rtk-gps/default.cmake
Expand Up @@ -4,7 +4,8 @@ px4_add_board(
PLATFORM nuttx
TOOLCHAIN arm-none-eabi
ARCHITECTURE cortex-m4
#CONSTRAINED_FLASH
CONSTRAINED_FLASH
NO_HELP
CONSTRAINED_MEMORY
EXTERNAL_METADATA
ROMFSROOT cannode
Expand Down
1 change: 1 addition & 0 deletions boards/atl/mantis-edu/default.cmake
Expand Up @@ -27,6 +27,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/av/x-v1/default.cmake
Expand Up @@ -68,6 +68,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/beaglebone/blue/default.cmake
Expand Up @@ -53,6 +53,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/bitcraze/crazyflie/default.cmake
Expand Up @@ -32,6 +32,7 @@ px4_add_board(
logger
mavlink
mc_att_control
# mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/bitcraze/crazyflie21/default.cmake
Expand Up @@ -31,6 +31,7 @@ px4_add_board(
logger
mavlink
mc_att_control
# mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/cuav/nora/default.cmake
Expand Up @@ -75,6 +75,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
7 changes: 4 additions & 3 deletions boards/cuav/nora/test.cmake
Expand Up @@ -16,7 +16,7 @@ px4_add_board(
# CONSOLE: /dev/ttyS4
# RC: /dev/ttyS5
DRIVERS
adc/ads1115
#adc/ads1115
adc/board_adc
barometer # all available barometer drivers
batt_smbus
Expand All @@ -37,8 +37,8 @@ px4_add_board(
lights # all available light drivers
lights/rgbled_pwm
magnetometer # all available magnetometer drivers
optical_flow # all available optical flow drivers
osd
#optical_flow # all available optical flow drivers
#osd
pca9685
pca9685_pwm_out
power_monitor/ina226
Expand Down Expand Up @@ -75,6 +75,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/cuav/x7pro/default.cmake
Expand Up @@ -76,6 +76,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
17 changes: 10 additions & 7 deletions boards/cuav/x7pro/test.cmake
Expand Up @@ -16,7 +16,7 @@ px4_add_board(
# CONSOLE: /dev/ttyS4
# RC: /dev/ttyS5
DRIVERS
adc/ads1115
#adc/ads1115
adc/board_adc
barometer # all available barometer drivers
batt_smbus
Expand All @@ -28,20 +28,21 @@ px4_add_board(
gps
heater
#imu # all available imu drivers
imu/analog_devices/adis16448
#imu/analog_devices/adis16448
imu/analog_devices/adis16470
imu/bosch/bmi088
imu/invensense/icm20649
imu/invensense/icm20689
imu/invensense/icm20948 # required for ak09916 mag
#imu/invensense/icm42688p
#irlock
lights # all available light drivers
lights/rgbled_pwm
magnetometer # all available magnetometer drivers
optical_flow # all available optical flow drivers
osd
pca9685
pca9685_pwm_out
#optical_flow # all available optical flow drivers
#osd
#pca9685
#pca9685_pwm_out
power_monitor/ina226
#protocol_splitter
pwm_out_sim
Expand All @@ -50,6 +51,7 @@ px4_add_board(
#roboclaw
#rpm
safety_button
#smart_battery/batmon
telemetry # all available telemetry drivers
test_ppm
tone_alarm
Expand All @@ -76,6 +78,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down Expand Up @@ -112,7 +115,7 @@ px4_add_board(
reboot
#reflect
sd_bench
serial_test
#serial_test
#system_time
tests # tests and test runner
top
Expand Down
1 change: 1 addition & 0 deletions boards/cubepilot/cubeorange/default.cmake
Expand Up @@ -72,6 +72,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/cubepilot/cubeorange/test.cmake
Expand Up @@ -73,6 +73,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/cubepilot/cubeyellow/default.cmake
Expand Up @@ -70,6 +70,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/cubepilot/cubeyellow/test.cmake
Expand Up @@ -71,6 +71,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/emlid/navio2/default.cmake
Expand Up @@ -53,6 +53,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/holybro/durandal-v1/default.cmake
Expand Up @@ -70,6 +70,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/holybro/durandal-v1/test.cmake
Expand Up @@ -71,6 +71,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
3 changes: 3 additions & 0 deletions boards/holybro/kakutef7/default.cmake
@@ -1,4 +1,6 @@

add_definitions(-DCONSTRAINED_FLASH_NO_HELP="https://docs.px4.io/master/en/modules/modules_main.html")

px4_add_board(
PLATFORM nuttx
TOOLCHAIN arm-none-eabi
Expand Down Expand Up @@ -45,6 +47,7 @@ px4_add_board(
logger
mavlink
mc_att_control
# mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/holybro/pix32v5/default.cmake
Expand Up @@ -74,6 +74,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/modalai/fc-v1/default.cmake
Expand Up @@ -68,6 +68,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/modalai/fc-v1/rtps.cmake
Expand Up @@ -66,6 +66,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/modalai/fc-v1/test.cmake
Expand Up @@ -68,6 +68,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/modalai/fc-v2/default.cmake
Expand Up @@ -72,6 +72,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/modalai/fc-v2/test.cmake
Expand Up @@ -73,6 +73,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/mro/ctrl-zero-f7-oem/default.cmake
Expand Up @@ -71,6 +71,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/mro/ctrl-zero-f7/default.cmake
Expand Up @@ -71,6 +71,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/mro/ctrl-zero-h7-oem/default.cmake
Expand Up @@ -70,6 +70,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/mro/ctrl-zero-h7/default.cmake
Expand Up @@ -70,6 +70,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/mro/pixracerpro/default.cmake
Expand Up @@ -70,6 +70,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/mro/x21-777/default.cmake
Expand Up @@ -71,6 +71,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/mro/x21/default.cmake
Expand Up @@ -72,6 +72,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/nxp/fmuk66-e/default.cmake
Expand Up @@ -68,6 +68,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down
1 change: 1 addition & 0 deletions boards/nxp/fmuk66-e/rtps.cmake
Expand Up @@ -68,6 +68,7 @@ px4_add_board(
logger
mavlink
mc_att_control
mc_autotune_attitude_control
mc_hover_thrust_estimator
mc_pos_control
mc_rate_control
Expand Down