Commit Graph

520 Commits

Author SHA1 Message Date
bugobliterator
03723871e2 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 09:54:47 +09:00
Andrew Tridgell
d6c5765ff9 AP_Scripting: disable PWMSource in scripts for 4.3.4
this avoids the interrupt handling bug. Proper fix in 4.4.x
2023-03-02 15:01:23 +09:00
Andrew Tridgell
93136f84a2 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 10:12:59 +09:00
Andrew Tridgell
68352534be AP_Scripting: check for alloc failure of ObjectBuffer 2023-01-10 10:14:12 +09:00
Andrew Tridgell
6a349e5e9c AP_Scripting: adjust EFI_SkyPower for rev 0.3 protocol 2022-11-21 18:48:49 +09:00
Andrew Tridgell
792523fd77 AP_Scripting: added CANDRV to HFE EFI driver and document 2022-11-21 18:48:49 +09:00
Andrew Tridgell
26d85227fb AP_Scripting: added throttle and generator control for EFI_SkyPower driver
and added documentation for the driver
2022-11-21 18:48:49 +09:00
Iampete1
3a2c0fed61 AP_Scripting: set lua nullptr after delete 2022-10-24 22:23:43 +09:00
Andrew Tridgell
781fed2390 AP_Scripting: added rc:get_aux_cached() example 2022-10-24 22:23:43 +09:00
Andrew Tridgell
06b18183e0 AP_Scripting: added get_aux_cached() RC binding 2022-10-24 22:23:43 +09:00
Andrew Tridgell
efd5c2a47e AP_Scripting: added relay get() binding 2022-10-24 22:23:43 +09:00
Andrew Tridgell
ba6797da0f AP_Scripting: fixed use of clock and time in lua
not available on stm32
2022-10-24 22:23:43 +09:00
Iampete1
6571a95120 AP_Scripting: clear alocated i2c devices on scripting stop 2022-10-14 17:13:21 +09:00
Iampete1
207efe3b03 AP_Scripting: add maunal i2c binding allowing read of sequentual registers 2022-10-14 17:13:21 +09:00
Iampete1
a6b5febe3d AP_Scripting: allow maunal apobject bindings 2022-10-14 17:13:21 +09:00
Andrew Tridgell
a9a7e4f4d2 AP_Scripting: delay getting EFI backend
allow for AP_EFI startup after scripting
2022-10-04 16:50:15 +09:00
Andrew Tridgell
cbd528cfaf AP_Scripting: changed bindings to ap_object 2022-10-04 16:50:15 +09:00
Andrew Tridgell
186e579036 AP_Scripting: convert HFE driver to get_backend 2022-10-04 16:50:15 +09:00
Andrew Tridgell
55b87b1e78 AP_Scripting: added mag_heading example 2022-10-04 16:50:15 +09:00
Andrew Tridgell
b0fe423d39 AP_Scripting: added EFI HFE driver 2022-10-04 16:50:15 +09:00
Andrew Tridgell
c3dd582872 AP_Scripting: added EFI_HFE tester 2022-10-04 16:50:15 +09:00
Andrew Tridgell
eed54bfb13 AP_Scripting: update bindings for new fields 2022-10-04 16:50:15 +09:00
Andrew Tridgell
41d6e6a05d AP_Scripting: added EFI testing script 2022-10-04 16:50:15 +09:00
Andrew Tridgell
691a75989f AP_Scripting: added EFI_SkyPower driver 2022-10-04 16:50:15 +09:00
Andrew Tridgell
24962be00b AP_Scripting: update docs 2022-10-04 16:50:15 +09:00
Joshua Henderson
b548e8bbde AP_Scripting: add scripting EFI bindings 2022-10-04 16:50:15 +09:00
Andrew Tridgell
e379aa359b AP_Scripting: added set_rpm_scale example 2022-09-13 14:20:02 +09:00
Andrew Tridgell
69b5ca8c07 AP_Scripting: added set_rpm_scale API 2022-09-13 14:20:02 +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
Randy Mackay
a7aa77ff86 AP_Scripting: add lua docs for mount methods 2022-07-02 09:21:53 +09:00