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
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
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
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
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
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
Peter Barker
6e5198a50c
AP_Frsky_Telem: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
e88d76d72d
AP_Scripting: rangefinder singleton requires AP_RANGEFINDER_ENABLED
...
.... or HAL_PERIPH_ENABLE_RANGEFINDER
2024-07-02 09:17:26 +10:00
Peter Barker
118f3b41ac
AP_RangeFinder: create a AP_RANGEFINDER_BACKEND_CAN_ENABLED
...
avoid cmpilation problems when rangefinder not enabled but CAN is
2024-07-02 09:17:26 +10:00
Peter Barker
fe6b120a73
AP_Vehicle: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
f9a94fd7dd
AP_RangeFinder: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
37964011df
AP_OSD: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
07e76a7cae
AP_NavEKF: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
13e7d04497
AP_NavEKF3: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
0f47cd7e8b
AP_NavEKF2: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
a715ee1ce2
AP_HAL_ChibiOS: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
abc0179a53
AP_DAL: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
955245e4b7
AP_Arming: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Andrew Tridgell
38ca478178
AP_Scripting: added gcs:run_command_int() binding
2024-07-01 20:08:29 +10:00
Andrew Tridgell
0116e1e80d
GCS_MAVLink: added lua_command_int_packet()
...
for lua access to MAV_CMD_xxx
2024-07-01 20:08:29 +10:00
Henry Wurzburg
4ed1b6b357
AP_Temperature:expand metadata for analog sensors
2024-07-01 14:01:19 +10:00
Peter Barker
e2f18d9217
AP_NavEKF2: remove unused initFailureReason
2024-07-01 09:04:05 +09:00
bnsgeyer
9c2d43f6c4
SITL: improve dual heli dynamics model
2024-06-30 18:21:21 -04:00
Andrew Tridgell
077c5f38f7
SITL: added comments on how to fly the glider
2024-06-30 10:02:15 +10:00
Peter Barker
780352cd75
AP_Logger: correct enumeration name -> AP_SmartRTL::Action
2024-06-28 10:11:57 +10:00
Peter Barker
2c89622f09
AP_SmartRTL: use enum class for Action, number entries
...
we log these values, so number them explicitly
2024-06-28 10:11:57 +10:00
George Zogopoulos
2717470df1
AP_Scripting: Misc. small improvements.
...
Typo fix
Removed unused variable
2024-06-28 10:05:29 +10:00
Thomas Watson
6e0d7bddf1
AP_Scripting: add serial device simulation example
2024-06-27 12:00:18 +10:00
Thomas Watson
f9b138724c
AP_Scripting: add serial loopback test script
...
Tests that data can flow both ways with one end using protocol 28
(Scripting) and the other using the serial device simulation feature.
2024-06-27 12:00:18 +10:00
Thomas Watson
46e204dd6c
AP_Scripting: clear serial device sim buffers appropriately
...
Ensures the script won't process data created before it started, and
that the protocol won't process data created after the script stopped.
2024-06-27 12:00:18 +10:00
Thomas Watson
4cb684e8a9
AP_Vehicle: initialize scripting serial device sim ports early
...
Necessary for mavlink in particular to notice the port and hook up the
protocol internally.
2024-06-27 12:00:18 +10:00
Thomas Watson
a077e4a3ed
AP_Scripting: introduce serial device simulation support
...
Allows a script to simulate a device attached via any serial protocol.
The script can read and write data and have it handled according to the
protocol as if exchanged over a serial port. The script can then do
protocol translation, data filtering and validation,
hardware-in-the-loop simulation, experimentation, etc., especially in
combination with the scripting protocol which lets the script itself
handle an attached device and so interpose any communication.
2024-06-27 12:00:18 +10:00
Thomas Watson
4df2a1bce7
AP_Scripting/generator: generate depends for manual functions on singletons
2024-06-27 12:00:18 +10:00
Thomas Watson
c18f9f733e
AP_Scripting: add writestring for serial
...
Enables more efficient scripting.
2024-06-27 12:00:18 +10:00
Thomas Watson
d93aa15f2a
AP_Scripting: refactor serial readstring
...
Using `luaL_Buffer` avoids the need for any heap allocation in the
common case (count <= 512 bytes) and avoids stressing out the system
heap for large reads, instead using the script heap.
Zero net flash usage change.
2024-06-27 12:00:18 +10:00