Update to stick position driver to use ADC system

This commit is contained in:
rob@marotori.com
2013-09-20 14:34:09 +00:00
parent bbb2b25ac8
commit c163e2513b
3 changed files with 40 additions and 29 deletions
-27
View File
@@ -2265,35 +2265,8 @@ BeepANACenter evalSticks(uint8_t mode)
v = -v;
#endif
#if defined(STICK_THR_REV)
v = -v;
if (g_model.throttleReversed && ch==THR_STICK)
v = +v;
#else
//normal stick operation but reveresed in model config
if (g_model.throttleReversed && ch==THR_STICK)
v = -v;
#endif
#if defined(STICK_AIL_REV)
if (ch==AIL_STICK)
v = -v;
#endif
#if defined(STICK_ELE_REV)
if (ch==ELE_STICK)
v = -v;
#endif
#if defined(STICK_RUD_REV)
if (ch==RUD_STICK)
v = -v;
#endif
/* end rob hack */
#if defined(EXTRA_3POS)