[Taranis] A lot of new features, >100 hours work in one commit...
This commit is contained in:
+6
-10
@@ -68,10 +68,13 @@
|
||||
#define STK_P3 7
|
||||
|
||||
#define CV(x) (CURVE_BASE+(x)-1)
|
||||
#define CC(x) (channel_order(x)) //need to invert this to work with dest
|
||||
#define CC(x) (MIXSRC_Rud - 1 + channel_order(x)) // need to invert this to work with dest
|
||||
|
||||
#define CURVE5(x) ((x)-1)
|
||||
#define CURVE9(x) (MAX_CURVE5+(x)-1)
|
||||
#if defined(PCBTARANIS)
|
||||
#define mixSetCurve(mix, idx) mix->curve.type=CURVE_REF_CUSTOM; mix->curve.value=idx
|
||||
#else
|
||||
#define mixSetCurve(mix, idx) mix->curveMode=MODE_CURVE; mix->curveParam=CURVE_BASE+idx
|
||||
#endif
|
||||
|
||||
enum Templates {
|
||||
TMPL_CLEAR_MIXES,
|
||||
@@ -89,13 +92,6 @@ void clearMixes();
|
||||
void clearCurves();
|
||||
void applyTemplate(uint8_t idx);
|
||||
|
||||
#ifdef TEMPLATES
|
||||
inline void applyDefaultTemplate()
|
||||
{
|
||||
applyTemplate(TMPL_SIMPLE_4CH);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //TEMPLATES_H
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user