Schwabe/lua set curve (#4955)

* Implement setCurve for lua

* Bug fixes after actual testing of API

* Fix documentation

* Even more error checking

* Add example code how to use this function

* Silence gcc warnings

* Drop points and start array index at 1 and note about wrong index in getCurve

* Add standard example

* Fixes

* Don’t use an invalid number in example

* fix missing 0
This commit is contained in:
Arne Schwabe
2017-05-28 07:30:43 +02:00
committed by Bertrand Songis
parent 1cb0156cd0
commit cd23fedb56
3 changed files with 194 additions and 2 deletions
+1 -1
View File
@@ -367,7 +367,7 @@ PACK(struct FlightModeData {
PACK(struct CurveData {
uint8_t type:1;
uint8_t smooth:1;
int8_t points:6; // TODO conversion
int8_t points:6; // TODO conversion (?!) (describes number of points - 5)
NOBACKUP(char name[LEN_CURVE_NAME]);
});
#else