Commit Graph

63943 Commits

Author SHA1 Message Date
Bill Geyer
41ed4d1321 AC_AutoTune: use new new macro
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2024-07-01 22:57:55 -04:00
Bill Geyer
b03203c612 Tools: heli autotune autotest save gains and add tune check 2024-07-01 22:57:55 -04:00
bnsgeyer
b1b4ddea94 Tools: update heli autotune autotest 2024-07-01 22:57:55 -04:00
bnsgeyer
c4f4067fd5 AC_AttitudeControl: add accessors to set rate limit 2024-07-01 22:57:55 -04:00
bnsgeyer
b13efc86af AC_AutoTune: use attitude controller to enforce rate and accel limits 2024-07-01 22:57:55 -04:00
bnsgeyer
ad1b01cd56 AC_AutoTune: improve RFF dwell test and data processing 2024-07-01 22:57:55 -04:00
Bill Geyer
30c2e1f53b AC_AutoTune: general cleanup and protect against freq exceedences 2024-07-01 22:57:55 -04:00
bnsgeyer
cc7e43d643 AC_AutoTune: max gain, rate p and d tuning use common search method 2024-07-01 22:57:55 -04:00
bnsgeyer
cf50aa1321 AC_AutoTune: trad heli variable cleanup 2024-07-01 22:57:55 -04:00
bnsgeyer
ad58f3e1f8 AC_AutoTune: reworked updating max gains 2024-07-01 22:57:55 -04:00
bnsgeyer
989f48f97a AC_AutoTune: reworked updating angle p up 2024-07-01 22:57:55 -04:00
bnsgeyer
cd18607f25 AC_AutoTune: reworked updating rate p and d up 2024-07-01 22:57:55 -04:00
bnsgeyer
61182c0e96 AC_AutoTune: reworked dwell_test and updating ff up 2024-07-01 22:57:55 -04:00
bnsgeyer
2339c7daed AC_AutoTune: moved more into dwell_test_init 2024-07-01 22:57:55 -04:00
bnsgeyer
7ff99a39f0 AC_AutoTune: fix tests to work better 2024-07-01 22:57:55 -04:00
bnsgeyer
3943a69b33 AC_AutoTune: fix object buffers to dynamically size 2024-07-01 22:57:55 -04:00
bnsgeyer
528b7eb438 AC_AutoTune: general cleanup to make code more efficient 2024-07-01 22:57:55 -04:00
bnsgeyer
9e4d118cc9 AC_AutoTune: remove sweep for Rate D up 2024-07-01 22:57:55 -04:00
bnsgeyer
32af6216b7 AC_Autotune: tradheli use dwell for FF test 2024-07-01 22:57:55 -04:00
bnsgeyer
dd1f0cdcf7 AC_AutoTune: make rate freq sweeps safer 2024-07-01 22:57:55 -04:00
Henry Wurzburg
48e27c382a AP_RSSI: make metadata more consistent 2024-07-02 11:34:29 +10:00
Henry Wurzburg
f087e9d25d AP_RangeFinder: make metadata more consistent 2024-07-02 11:34:29 +10:00
Henry Wurzburg
a03ccd1a8a AP_BattMonitor: make metadata more consistent 2024-07-02 11:34:29 +10:00
Henry Wurzburg
59db5de78c AP_Airspeed: make metadata more consistent 2024-07-02 11:34:29 +10:00
Thomas Watson
717c5ff863 AP_Scripting: ignore hidden Lua files
On macOS, sometimes ._script.lua is created to store metadata when the
user copies script.lua over to their SD card. Previously, the scripting
engine would barf since the file is not Lua. Now, these files are
ignored.

Also avoids a case where a hidden and valid script might be loaded
without the user's knowledge.
2024-07-02 11:07:40 +10:00
Peter Barker
e2ef47b221 autotest: break out a run_replay method 2024-07-02 11:05:40 +10:00
Peter Barker
eb539f2c4a autotest: allow message hooks to be instances of a MessageHook class
allows state to be encapsulated within the object rather than simply in the same scope / closure of the method being called.

Will allow easier re-use of these blocks
2024-07-02 11:05:40 +10:00
Peter Barker
0c7a527ad3 autotest: add test infrastructure for installing lua modules 2024-07-02 11:05:40 +10:00
Peter Barker
3a23cf7144 autotest: add option to ingore RTL mode change during in auto mode
Plane emits a heartbeat with RTL in it when doing a DO_LAND_START
2024-07-02 11:05:40 +10:00
Peter Barker
1dae1fe7df autotest: add get_mode_string_for_mode 2024-07-02 11:05:40 +10:00
Peter Barker
744da0aec7 autotest: add a home_relative_loc_neu method 2024-07-02 11:05:40 +10:00
Peter Barker
0056ef2d90 AP_Logger: write formats out as required rather than at start of log 2024-07-02 10:59:55 +10:00
Andrew Tridgell
681e2d7993 AP_GPS: don't consider uBlox PVT time correct unless we have 2D fix
the time may be set by an offline assistance client and may not be
accurate
2024-07-02 10:25:03 +10:00
Iampete1
39e75c5b67 Plane: Quadplane: update Q_OPTION bit 22 description 2024-07-02 10:23:51 +10:00
Peter Barker
f3a75661d9 AP_Frsky_Telem: avoid use if int16-t read call 2024-07-02 10:14:28 +10:00
Peter Barker
85f89812d5 AP_Generator: avoid use of int16_t-read 2024-07-02 10:13:24 +10:00
Peter Barker
42805aa892 AP_GPS: confine inter-instance DroneCAN state checks to DroneCAN GPSs
stop these looking at parameters/state for all GPSs, focus on DroneCAN GPSs
2024-07-02 09:56:40 +10:00
Peter Barker
ebfbcacfe3 AP_GPS: tidy pre_arm_checks 2024-07-02 09:56:40 +10:00
Peter Barker
3e57edf37c AP_Arming: tidy pre_arm_checks 2024-07-02 09:56:40 +10:00
Peter Barker
bac008d51c autotest: tidy pre_arm_checks 2024-07-02 09:56:40 +10:00
Iampete1
a9eb6051fa AP_BatteryMonitor: add missing failsafe with no action 2024-07-02 09:54:36 +10:00
Bill Geyer
c5585f84af AC_AttitudeControl: various suggested cleanup items
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2024-07-02 08:39:33 +09:00
Bill Geyer
29897f99af AP_Motors: Clean up spacing
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2024-07-02 08:39:33 +09:00
Bill Geyer
2b95582d22 Copter: suggested clean up items
Co-authored-by: Peter Hall <33176108+IamPete1@users.noreply.github.com>
2024-07-02 08:39:33 +09:00
Bill Geyer
805480e5a2 AC_AttitudeControl: only allow angle boost when not autorotating 2024-07-02 08:39:33 +09:00
Bill Geyer
a19b72e895 AP_Motors: helper function to determine when heli is in autorotation 2024-07-02 08:39:33 +09:00
bnsgeyer
0de2d6d482 Copter: ensure force flying with heli inverted flag 2024-07-02 08:39:33 +09:00
bnsgeyer
a07b514ee8 Copter: allow tradheli inverted feature for stabilize, althold, loiter and auto modes 2024-07-02 08:39:33 +09:00
bnsgeyer
f06bbd471f AC_AttitudeControl: tradheli-add support for inverted and throttle boost features 2024-07-02 08:39:33 +09:00
Peter Barker
4550f7dcb1 hwdef: make H757I_EVAL a periph
its bootloader is marked as a bootloader peripheral, the main firmware is notistent in our message.
2024-07-02 09:17:26 +10:00