Commit Graph

52112 Commits

Author SHA1 Message Date
Andy Piper
ea1af70f2b AP_HAL: add support for @SYS/timers.txt
move prescaler calculation here and add unit test
add ability to find closest matching frequency in prescaler calculation
account for bit widths in prescaler tests
2022-02-16 15:28:04 +11:00
Nathan Costa
a867e04116 AP_Periph: airspeed add support for CAN/I2C switch and LED 2022-02-16 13:25:58 +11:00
Nathan Costa
9f7aa715b1 AP_HAL_ChibiOS: add support for CAN/I2C switch 2022-02-16 13:25:58 +11:00
Peter Barker
c781897e52 Tools: powr_change.py also prints AccFlags changes 2022-02-16 10:07:56 +11:00
Peter Barker
de1c2ed598 Tools: add powr_change.py
Simpler to work out what's gone wrong in a log this way:

pbarker@bluebottle:~/rc/ardupilot/Tools/scripts(master)$ ./powr_change.py /tmp/00000109.BIN
1644894818: Creating connection
2022-02-14 00:30:25.91:  +MAV_POWER_STATUS_BRICK_VALID +MAV_POWER_STATUS_SERVO_VALID
2022-02-14 00:33:15.46:  +MAV_POWER_STATUS_CHANGED
2022-02-14 00:33:34.96:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:33:35.06:  -MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:16.86:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:16.96:  -MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:38.46:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:38.56:  -MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:40.05:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:40.15:  -MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:41.45:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:41.55:  -MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:45.85:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:45.95:  -MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:47.05:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:47.15:  -MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:48.25:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:48.35:  -MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:49.75:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:49.85:  -MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:34:51.05:  +MAV_POWER_STATUS_PERIPH_OVERCURRENT
2022-02-14 00:38:01.89:  -MAV_POWER_STATUS_CHANGED
pbarker@bluebottle:~/rc/ardupilot/Tools/scripts(master)$
2022-02-16 10:07:56 +11:00
Andrew Tridgell
1bdc9b5bf8 Plane: fixed in_vtol logic so QRTL can AIRBRAKE 2022-02-16 07:43:01 +11:00
Andrew Tridgell
aab6c94936 Plane: don't weathervane in AIRBRAKE state
this prevents unwanted VTOL motor throttle while trying to slow
down. In this stage the slaving of yaw rate to fixed wing roll control
is sufficient
2022-02-16 07:43:01 +11:00
Andrew Tridgell
2846f87eeb Plane: reduce height gain in auto landing for tiltrotors
avoid running the motors while tilted past the tilt max if we are in
AIRBRAKE state. This stops a large amount of forward thrust from the
tilted motors while trying to slow down, while still maintaining
attitude control
2022-02-16 07:43:01 +11:00
Bill Geyer
b1d1dc97ff Copter: set new parameter defaults for tradheli 2022-02-15 13:42:09 -05:00
Bill Geyer
6204898de4 AC_AttitudeControl: Tradheli-update default gains 2022-02-15 13:42:09 -05:00
Andy Piper
a34f8e1b8d scripts: add SPRacingH7 to manifest files and CI build 2022-02-15 11:32:52 +11:00
Andy Piper
e88ad24ab5 bootloaders: add SPRacingH7 bootloader 2022-02-15 11:32:52 +11:00
Andy Piper
7b15245efe AP_HAL_ChibiOS: update SPRacingH7 Extreme hwdef and add README
add SPRacingH7 board layout
2022-02-15 11:32:52 +11:00
Iampete1
e56b6d2765 AP_AHRS: View: get_gyro_latest should include pitch trim. 2022-02-15 11:08:05 +11:00
Peter Barker
376d7ade50 autotest: use assert_receive_message to remove redundant code 2022-02-15 11:06:10 +11:00
Henry Wurzburg
0f05cb06fa AP_NavEKF3: update and correct GSF parameter documentation 2022-02-15 10:56:35 +11:00
Henry Wurzburg
5e6447e893 AP_NavEKF2: update and correct GSF parameter documentation 2022-02-15 10:56:35 +11:00
Willian Galvani
77f9d4fdba Tools: scripts: build_ci.sh: validate firmware fwversion with firmware_version_decoder.py 2022-02-15 10:38:28 +11:00
Willian Galvani
55d8ba647c Tools: Scripts: firmware_version_decoder: add --expected-hash for running in CI 2022-02-15 10:38:28 +11:00
Peter Barker
0cd5bdebfb autotest: reduce Copter speed requirement in DO_CHANGE_SPEED 2022-02-15 08:29:10 +09:00
murata
e209a6e73b AP_Filesystem: Remove WHITE SPACE to match other method styles 2022-02-15 10:14:13 +11:00
murata
0967d79a93 AP_Filesystem: Change the judgment null of methods that return nullptr 2022-02-15 10:14:13 +11:00
Iampete1
918b8a1a9c AP_Scripting: add binding and helper to get old params 2022-02-15 10:05:23 +11:00
Randy Mackay
4a2af10f96 AR_Motors: remove redundant set of throttle limit flags
set_limits_from_input is called lower in the method and will set the limits correctly
2022-02-15 08:02:04 +09:00
Randy Mackay
0ecbfa5ba9 Rover: minor format fixes 2022-02-15 08:01:32 +09:00
Randy Mackay
a5e424350d Rover: remove unnecessary constraint on steering sent to motors library 2022-02-15 08:01:32 +09:00
Peter Barker
fdae5f3ccc autotest: correct wait_groundspeed method 2022-02-14 14:07:47 +11:00
Peter Barker
dc312260de autotest: add test for DO_CHANGE_SPEED 2022-02-14 14:07:47 +11:00
Henry Wurzburg
14c9d4e6a3 AP_UAVCAN: add metadata to GetNodeInfo log message 2022-02-14 13:38:07 +11:00
Andy Piper
87a369727a AP_Math: specialize float and double functions to use fabsf() and simple comparison otherwise 2022-02-13 14:43:37 +11:00
Andy Piper
9084d19273 AP_NavEKF: disable warnings on clang 2022-02-13 14:43:37 +11:00
Peter Barker
5db5bbfbb3 Rover: remove un-needed initialisations 2022-02-12 22:02:15 +11:00
Andrew Tridgell
eb549f3e00 AP_HAL: review comments 2022-02-12 16:36:05 +11:00
Andrew Tridgell
f0761a0ad8 mavlink: update for CANFD_FRAME 2022-02-12 16:36:05 +11:00
Andrew Tridgell
55f21f367b AP_UAVCAN: disable CAN filtering except on AP_Periph
this saves flash space and makes CAN forwarding for any bus without
reconfigure/reboot easy. CAN filtering is not useful in the main
flight controller firmware as we want to see nearly all packets
2022-02-12 16:36:05 +11:00
Andrew Tridgell
0b95272f27 AP_CANManager: support mavcan message forwarding 2022-02-12 16:36:05 +11:00
Andrew Tridgell
ba502b462f GCS_MAVLINK: support CAN_FRAME and MAV_CMD_CAN_FORWARD 2022-02-12 16:36:05 +11:00
Andrew Tridgell
b6f78ede2e HAL_Linux: support mavcan 2022-02-12 16:36:05 +11:00
Andrew Tridgell
5eb8b8d72e HAL_SITL: support mavcan message forwarding 2022-02-12 16:36:05 +11:00
Andrew Tridgell
dbe17d072f AP_HAL: support mavcan message forwarding 2022-02-12 16:36:05 +11:00
Andrew Tridgell
33ebc83a68 AP_HAL_ChibiOS: disable CAN filtering except on AP_Periph
this saves flash space and makes CAN forwarding for any bus without
reconfigure/reboot easy. CAN filtering is not useful in the main
flight controller firmware as we want to see nearly all packets
2022-02-12 16:36:05 +11:00
Andrew Tridgell
b6bf74b73d AP_CANManager: disable CAN filtering except on AP_Periph
this saves flash space and makes CAN forwarding for any bus without
reconfigure/reboot easy. CAN filtering is not useful in the main
flight controller firmware as we want to see nearly all packets
2022-02-12 16:36:05 +11:00
Andrew Tridgell
124c9d5d9b HAL_ChibiOS: support mavcan message forwarding 2022-02-12 16:36:05 +11:00
Randy Mackay
61871b1d7b Tools: disable Plane Landing-Drift test 2022-02-12 08:28:44 +09:00
Andrew Tridgell
5bb7b04343 Plane: added release notes for 4.1.7beta1 2022-02-12 09:00:51 +11:00
Joshua Henderson
1cf31dc25b AP_BattMonitor: fix UAVCAN param index for varptr 2022-02-11 22:17:18 +09:00
Joshua Henderson
ec1f5e39b4 AP_BattMonitor: add documentation for UAVCAN params 2022-02-11 22:17:18 +09:00
Randy Mackay
10f4500584 Tools: remove SPORT from autotests 2022-02-11 16:11:39 +09:00
Randy Mackay
0941c741c8 Copter: disable sport mode 2022-02-11 16:11:39 +09:00
Tatsuya Yamaguchi
a40e020813 Copter: fix the defined value for parachute check 2022-02-11 12:42:51 +11:00