murata
6c83f2262d
AP_Scripting: Remove meaningless semicolons
2022-02-07 08:27:34 +09:00
Iampete1
da352163ee
AP_Scripting: move singleton method bindings to flash
2022-02-02 11:33:46 +11:00
Andrew Tridgell
d56840e4ef
AP_Scripting: special case handling of copy method
...
allow for each copy() of Location, Vector2f and Vector3f without
adding special methods to each type in C++
2022-01-18 19:18:13 +11:00
Iampete1
c21ec13719
AP_Scripting: support feild alias s
2022-01-06 22:30:58 +11:00
Iampete1
18d0687847
AP_Scripting: support singleton feild types
2022-01-06 22:30:58 +11:00
Iampete1
9ccf17488d
AP_Scripting: allow singleton types as refrence rather than pointer
2022-01-06 22:30:58 +11:00
Iampete1
ec4949c9e3
AP_Scripting: generator: use depends for singleton strings
2022-01-04 11:40:33 +11:00
Iampete1
da1fde06ad
AP_Scripting: fix skip check userdata feild write
2021-10-26 11:05:22 +11:00
Iampete1
003561ab75
AP_Scripting: Docs: append _ud to userdata types to avoild name clash with new functions and declare local
2021-10-26 11:05:22 +11:00
Iampete1
a70134ba38
AP_Scripting: generator: ouput Emmylua docs
2021-10-20 18:35:09 +11:00
Iampete1
0f8bcbf4b8
AP_Scripting: optimise genrated bindings for size
2021-10-12 10:08:56 +11:00
Iampete1
302e855dab
AP_Scripting: add 'skip_check keyword to skip argument range check
2021-10-12 10:08:56 +11:00
Iampete1
0772af5539
AP_Scripting: generator: dont initalise trivial types
2021-10-12 10:08:56 +11:00
Iampete1
32d6919ae2
AP_Scripting: generator: remove unneeded else in nullable returns
2021-10-12 10:08:56 +11:00
Iampete1
8c7cad8663
AP_Scripting: generator support depends keyword on AP_Object
2021-07-27 09:04:17 +10:00
Iampete1
a6795a8e45
AP_Scripting: support depends keyword on userdata
2021-07-20 09:19:28 +10:00
Iampete1
aad459d447
AP_Scripting: support array userdata feilds
2021-07-20 09:19:28 +10:00
Iampete1
590be4049c
AP_Scripting: support userdata alias
2021-03-30 10:44:43 +11:00
Iampete1
7b3097972b
AP_Scripting: generator: support pointer semaphore flag
2021-03-17 18:50:05 +11:00
Iampete1
c54634e86b
AP_Scripting: generator: finish off refence access implmentation
2021-03-17 18:50:05 +11:00
Iampete1
8effa59d10
AP_Scripting: generator: support method alias and sanitised names
2021-03-17 18:50:05 +11:00
Peter Hall
9997981702
AP_Scripting: generator: support literal singltons that do not need to be fetched
2021-03-17 18:50:05 +11:00
Iampete1
bf7920f2d7
AP_Scripting: use helper for not supported error saving 1K of flash
2021-02-18 15:12:58 -07:00
Iampete1
2a75432fa2
AP_Scripting: Generator: support depends
2021-01-19 11:18:10 +11:00
Iampete1
0668c5c584
AP_Scripting: support pass by refence on none bool return
2020-11-02 17:40:21 -07:00
Pierre Kancir
af1bdcfdfc
AP_Scipting: fix memleak on generator
2020-08-26 17:06:23 +10:00
Siddharth Purohit
913c00dd96
AP_Scripting: add default case to fix uninitialised use situation
2020-07-30 20:28:48 +10:00
Michael du Breuil
1c789c66c3
AP_Scripting: Fix generator for nullable types with multiple return values
2020-07-28 16:22:17 -07:00
Iampete1
2ad81fb425
AP_Scripting: generator: static cast all basic return types
2020-07-28 13:47:35 +10:00
Michael du Breuil
ff007dd017
AP_Scripting: Allow generator to cope with windows line endings
...
Also fixes allowing an extra new line on the depends entries to be
emitted, as well as a possible stack overflow in the generator if
you inserted a malicious comment.
2020-06-24 09:37:36 -07:00
Andy Piper
e9b939ccb5
AP_Scripting: build fix for macOS
2020-05-13 11:59:03 -07:00
Andrew Tridgell
2c6fd13899
AP_Scripting: auto-build the bindings
2020-05-12 19:55:21 +10:00
Michael du Breuil
6753e99604
AP_Scripting: Add a return around luaL_error
...
This is the normal method of calling luaL_error which longjmp's away,
and it helps the static analysis tools realize that anything afterwards
will not be reached
2020-03-28 21:16:09 +11:00
Michael du Breuil
a0bfc823b3
AP_Scripting: Support libraries holding the scheduler lock
2020-02-18 09:16:10 +11:00
Michael du Breuil
51f79c1b10
AP_Scripting: Add support for UART drivers
...
Also improves the handling of uint32_t arguments
2020-01-13 20:06:31 -07:00
Peter Barker
4c5c5fff72
AP_Scripting: add some pointers on how to work with bindings
2020-01-07 19:29:12 -07:00
Michael du Breuil
38e17e2068
AP_Scripting: Add Location get_distance_NED and get_distance_NE
...
Fixes a regression with nil punning which broke Location:offset() and
adds a test script that is suitable for CI to test this sort of thing
2019-10-31 07:10:55 +11:00
Michael du Breuil
610dff61d8
AP_Scripting: Fix nullable arguments numbering, add location bearing
2019-10-25 08:48:22 +08:00
Michael du Breuil
f0e742caa3
AP_Scripting: Fix generation of uint32_t arguments
...
This also fixes the message interval description not generating
correctly, it must have been manually edited before
2019-10-14 17:51:54 -06:00
Michael du Breuil
1e66457755
AP_Scripting: Allow the bindings to descirbe any build dependencies needed
...
Scripting has a hard requirement on AP_Terrain being available, this
allows us to emit a cleaner error message if you have disabled terrain
but not scripting
2019-08-27 09:45:35 +10:00
Michael du Breuil
9e04939adf
AP_Scripting: Protect send_text from reading the stack
...
Also fixes small alignment problem in generated code
2019-07-24 16:03:46 +10:00
Michael du Breuil
6caa700c09
AP_Scripting: Add literal support to the binding layer
2019-07-23 10:05:29 +09:00
Michael du Breuil
f79a3100d0
AP_Scripting: Add arming call, improve range check casting
2019-07-22 14:32:54 +09:00
Michael du Breuil
0054544bd3
AP_Scripting: Add support for enums to be passed through
2019-07-19 09:34:05 +09:00
Michael du Breuil
ed584313bd
AP_Scripting: Remove unneeded debug output, fix the index for singleton errors
2019-07-14 00:28:00 -07:00
Michael du Breuil
d58783664d
AP_Scripting: Update generator to not use readline
2019-07-12 16:55:12 -07:00
Michael du Breuil
104164d2e4
AP_Scripting: Tighten range checks on library calls
2019-07-06 09:01:13 -07:00
Michael du Breuil
8db8dcd2d2
AP_Scripting: Fix up some warnings
...
-Remove some non forward declared issues
-Remove forced min/max values from the enum range check
2019-05-11 18:25:43 -07:00
Michael du Breuil
bd256afee4
AP_Scripting: extract a common argument check helper
...
Allows an easy additional flag for saving flash space
2019-05-11 18:25:43 -07:00
Michael du Breuil
84c2b18e43
AP_Scripting: Support enum types, add millis() remove manual GCS wrapper
...
This introduces enum types for range checking/returns, adds a millis(() call
(this returns a uint32_t), and moves over to an auto generated version of the GCS binding
2019-05-11 18:25:43 -07:00