1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

Curves code moved to a separate file

This commit is contained in:
bsongis 2014-05-15 07:48:55 +02:00
parent d047133e64
commit 5503a9cd3c
9 changed files with 448 additions and 399 deletions

View file

@ -1040,7 +1040,16 @@ extern uint16_t BandGap;
int intpol(int x, uint8_t idx);
int expo(int x, int k);
int applyCurve(int x, int8_t idx);
#if defined(CURVES)
#if defined(PCBTARANIS)
int applyCurve(int x, CurveRef & curve);
#else
int applyCurve(int x, int8_t idx);
#endif
#else
#define applyCurve(x, idx) (x)
#endif
#if defined(PCBTARANIS)
int applyCustomCurve(int x, uint8_t idx);