mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
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:
parent
1cb0156cd0
commit
cd23fedb56
3 changed files with 194 additions and 2 deletions
|
@ -168,7 +168,7 @@ enum CurveType {
|
|||
#define LEN_INPUT_NAME 3
|
||||
#define LEN_CURVE_NAME 3
|
||||
#define LEN_FUNCTION_NAME 6
|
||||
#define MAX_CURVES 16
|
||||
#define MAX_CURVES 16 // TODO next EEPROM check if can be changed to 32 to have all ARM the same
|
||||
#define MAX_CURVE_POINTS 512
|
||||
#elif defined(PCBTARANIS)
|
||||
#define LEN_MODEL_NAME 12
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue