Andrew Tridgell
e2041b0ae7
AP_Scripting: fixed float register save/restore in setjmp/longjmp
...
the register save must happen before the setjmp() call, which means
outside of the LUAI_TRY() macro. We also should be saving all 32
floating point registers
2024-05-31 09:44:38 +10:00
bugobliterator
e6280e6d37
AP_Scripting: stash and restore FPU register context in LUAI_TRY
...
this fixes an issue where a lua library function triggers an exception
after it does a math operation which changes the floating point
registers on M7 MCUs (such as STM32H7). An example is math.random()
which calls math_random(), which pre-calculates a double value before
checking if the arguments to the call are valid. When it then checks
and finds invalid values the exception longjmp does not restore the
floating point registers.
2023-08-16 08:24:06 +09:00
Andrew Tridgell
92f9b7e11f
AP_Scripting: disable PWMSource in scripts for 4.3.4
...
this avoids the interrupt handling bug. Proper fix in 4.4.x
2023-03-01 11:57:54 +09:00
Andrew Tridgell
af3f492473
AP_Scripting: fixed alt frame error in ship landing
...
if terrain follow is enabled then this would result in mixing a
terrain alt with an absolute alt, resulting in attempts to descend to
a negative alt
2023-01-20 09:58:14 +09:00
Andrew Tridgell
6e6df75b2a
AP_Scripting: check for alloc failure of ObjectBuffer
2023-01-10 08:12:47 +09:00
Andrew Tridgell
4755ca7434
AP_Scripting: adjust EFI_SkyPower for rev 0.3 protocol
2022-11-21 18:48:35 +09:00
Andrew Tridgell
2eeff1de32
AP_Scripting: added CANDRV to HFE EFI driver and document
2022-11-21 18:48:35 +09:00
Andrew Tridgell
2538490c60
AP_Scripting: added throttle and generator control for EFI_SkyPower driver
...
and added documentation for the driver
2022-11-21 18:48:35 +09:00
Iampete1
5d2f47a4bc
AP_Scripting: set lua nullptr after delete
2022-10-24 22:23:32 +09:00
Andrew Tridgell
e9a5c2553a
AP_Scripting: added rc:get_aux_cached() example
2022-10-24 22:23:32 +09:00
Andrew Tridgell
71696b9fb0
AP_Scripting: added get_aux_cached() RC binding
2022-10-24 22:23:32 +09:00
Andrew Tridgell
04fb0b8ebc
AP_Scripting: added relay get() binding
2022-10-24 22:23:32 +09:00
Andrew Tridgell
bc14301e58
AP_Scripting: fixed use of clock and time in lua
...
not available on stm32
2022-10-24 22:23:32 +09:00
Iampete1
8877f45578
AP_Scripting: clear alocated i2c devices on scripting stop
2022-10-14 17:13:10 +09:00
Iampete1
bc1c2bbed4
AP_Scripting: add maunal i2c binding allowing read of sequentual registers
2022-10-14 17:13:10 +09:00
Iampete1
e7ee0ce526
AP_Scripting: allow maunal apobject bindings
2022-10-14 17:13:10 +09:00
Andrew Tridgell
9415d9fc40
AP_Scripting: delay getting EFI backend
...
allow for AP_EFI startup after scripting
2022-10-04 16:50:08 +09:00
Andrew Tridgell
24ef595af6
AP_Scripting: changed bindings to ap_object
2022-10-04 16:50:08 +09:00
Andrew Tridgell
fe2cc8315a
AP_Scripting: convert HFE driver to get_backend
2022-10-04 16:50:08 +09:00
Andrew Tridgell
1a68678dd6
AP_Scripting: added mag_heading example
2022-10-04 16:50:08 +09:00
Andrew Tridgell
a3c6bd0a9c
AP_Scripting: added EFI HFE driver
2022-10-04 16:50:08 +09:00
Andrew Tridgell
710eb1046a
AP_Scripting: added EFI_HFE tester
2022-10-04 16:50:08 +09:00
Andrew Tridgell
1ee32bff88
AP_Scripting: update bindings for new fields
2022-10-04 16:50:08 +09:00
Andrew Tridgell
7f0d71ef98
AP_Scripting: added EFI testing script
2022-10-04 16:50:08 +09:00
Andrew Tridgell
6b08b2a2fd
AP_Scripting: added EFI_SkyPower driver
2022-10-04 16:50:08 +09:00
Andrew Tridgell
7b975a1b71
AP_Scripting: update docs
2022-10-04 16:50:08 +09:00
Joshua Henderson
d71496206f
AP_Scripting: add scripting EFI bindings
2022-10-04 16:50:08 +09:00
Andrew Tridgell
6dc63e5d86
AP_Scripting: added set_rpm_scale example
2022-09-13 14:19:47 +09:00
Andrew Tridgell
d3461452ef
AP_Scripting: added set_rpm_scale API
2022-09-13 14:19:47 +09:00
Iampete1
60a75a0973
AP_Scripting: examaples move to : acsess
2022-09-06 10:39:35 +10:00
Iampete1
5b2236e88c
AP_Scripting: Manual bindings: allow both : and . acsess
2022-09-06 10:39:35 +10:00
Iampete1
da5ec973c5
AP_Scripting: add error message buffer semaphore
2022-08-31 17:04:24 +10:00
Iampete1
e3931a6f56
AP_Scripting: add debug option to disable pre-arm
2022-08-31 17:04:24 +10:00
Iampete1
bbcb7b5827
AP_Scripting: move to common status text "Scripting:" prefix to save flash
2022-08-31 17:04:24 +10:00
Iampete1
e2c29b09ab
AP_Scripting: add arming check for failed scripts
2022-08-31 17:04:24 +10:00
Joshua Henderson
bbbf0b9718
AP_Scripting: VTOL-quiktune add back param for AUTO_FILTER
2022-08-26 16:45:45 +10:00
Joshua Henderson
82ece34981
AP_Scripting: VTOL-quiktune add param for RC script function
2022-08-26 16:45:45 +10:00
Iampete1
08b458c995
AP_Scripting: add Quadplane low altitude forward flight mode aplet
2022-08-23 10:17:48 +10:00
Iampete1
b399ed3044
AP_Scripting: unint32: remove integer range check
2022-08-19 10:29:39 +10:00
nrt
2c58206a75
AP_Scripting: added Lua example demonstrating the use of active source set
2022-08-18 02:05:27 -04:00
Peter Barker
20f73ad55e
AP_Scripting: rename OpticalFlow class to AP_OpticalFlow
...
Brings us in-line with other classes in ArduPilot.
Removes ambiguity with AP_HAL::OpticalFlow which can cause compilation errors as we start to make code more portable across targets
2022-08-18 14:24:01 +10:00
Iampete1
df6a5f0e0d
AP_Scripting: reuse uint32 dev operation for idiv
2022-08-17 17:18:26 +10:00
Iampete1
2c8a11885f
AP_Scripting: Boxed numerics and maunal bindings use generated arg checker
2022-08-17 17:18:26 +10:00
Rolf-G
ea44da1e8d
AP_Scripting: examples: Aerobatics: Corrects arg1/arg2
...
Corrects bad description of arg1 and arg2 for rolling circle in plane_aerobatics.lua
See https://github.com/ArduPilot/ardupilot/issues/21022
2022-07-20 13:18:10 +01:00
Andrew Tridgell
1995dbf47c
AP_Scripting: added update_rpm() scripting binding
2022-07-13 17:33:00 +10:00
Yuri
565f757f35
AP_Scripting: rover-MinFixType example param caching fix
2022-07-07 19:34:10 +09:00
Yuri
6a74be104f
AP_Scripting: add set_desired_speed binding
2022-07-07 19:34:10 +09:00
Andrew Tridgell
39fd4f01cd
AP_Scripting: fixed SimOnHardware build
...
HAL_MOUNT_ENABLED depends on !HAL_MINIMIZE_FEATURES
2022-07-07 12:33:01 +10:00
Iampete1
ea4f050aa8
AP_Scripting: Generator: fix docs generator aliasing
2022-07-05 10:31:51 +10:00
Andrew Tridgell
d8b98789e6
AP_Scripting: add support for scripting2 protocol
2022-07-03 08:21:55 +10:00