Peter Barker
a5d7000ffd
ArduSub: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
c14c2d67d4
ArduPlane: make AP_RANGEFINDER_ENABLED remove more code
2024-07-02 09:17:26 +10:00
Peter Barker
f64fcb78d3
ArduCopter: make AP_RANGEFINDER_ENABLED remove more code
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
Willian Galvani
dabc34e7de
Rover: fix ModeReason on fence breaches
2024-07-02 07:41:13 +09: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
Peter Barker
98068e481e
autotest: correct places using print rather than progress
2024-07-01 16:58:25 +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
2809b160ae
Tools: update heli-dual params
2024-06-30 18:21:21 -04: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
Andrew Tridgell
060818a0e1
Tools: fixed default glider parameters
2024-06-30 10:02:15 +10:00
Willian Galvani
2b60e93410
Sub: move servo calc logic to motors_output() and cork SRV_Channels for improved performance
2024-06-28 13:10:15 -03:00
ES-Alexander
b0d89c6862
Sub: update status to include all failsafes
2024-06-28 12:45:10 -03:00
richaravoil
84adf69ac9
Blimp: get MAV_STATE_BOOT on reboot
2024-06-29 00:12:33 +10:00
Iampete1
99f12d66ff
Rover: call stats set_flying from 1Hz loop
2024-06-28 18:07:22 +10:00
Peter Barker
9d7c8277a4
autotest: make WaitAndMaintainEKFFlags progress nicer
2024-06-28 17:06:23 +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
Willian Galvani
12de0d85dd
Sub: sync MAVLink system id in 1hz loop
2024-06-27 21:05:19 -03:00
ES-Alexander
868a650fba
README: add Navigator maintainer attribution
2024-06-27 00:06:38 -03:00
Thomas Watson
6e0d7bddf1
AP_Scripting: add serial device simulation example
2024-06-27 12:00:18 +10:00
Thomas Watson
ad7270f682
autotest: 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 feature.
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
f5cc0b3093
Tools: add feature/option defs for serial device simulation
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
Thomas Watson
e18449b1b8
AP_Scripting: use generic access userdata for serial ports
...
Adding another layer instead of just exposing UARTDriver bindings allows
substitution of the different functions for device simulation later.
Also take the opportunity to rework the docs a little.
2024-06-27 12:00:18 +10:00
Thomas Watson
c37dba60de
AP_Scripting/generator: allow disabling userdata creation from Lua
...
Passing -1 to the argument count for the `creation` tag (name does not
matter) will stop the generator from giving Lua a function to construct
that userdata. The C `new_<name>` function still works.
2024-06-27 12:00:18 +10:00
Thomas Watson
7fb65aece3
AP_SerialManager: allocate port IDs for scripting serial device ports
2024-06-27 12:00:18 +10:00
Peter Barker
0ee787325a
AC_AutoTune: NFC whitespace, ordering and add trailing comma to enumeration
2024-06-27 10:12:30 +10:00
Pierre Kancir
396bca359d
AP_Scripting: add an example to use Copter Standby mode in SITL with LUA
2024-06-27 10:11:53 +10:00
Andrew Tridgell
10c6020a66
AP_Scripting: update docs
2024-06-27 10:11:14 +10:00
Andrew Tridgell
57c8c19452
AP_Periph: show MCU temp in PPPGW web UI
2024-06-27 10:11:14 +10:00
Andrew Tridgell
bcfc273799
hwdef: enable an ADC on CubePilot-PPPGW
...
allows for mcu temp
2024-06-27 10:11:14 +10:00