mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 21:05:26 +03:00
Warning removed. HELI option really needs to be tested
This commit is contained in:
parent
a94d08606f
commit
a8d4ba5758
1 changed files with 1 additions and 7 deletions
|
@ -371,16 +371,10 @@ void evalInputs(uint8_t mode)
|
||||||
{
|
{
|
||||||
BeepANACenter anaCenter = 0;
|
BeepANACenter anaCenter = 0;
|
||||||
|
|
||||||
#if defined(HELI)
|
#if defined(HELI) && !defined(VIRTUALINPUTS)
|
||||||
uint16_t d = 0;
|
uint16_t d = 0;
|
||||||
if (g_model.swashR.value) {
|
if (g_model.swashR.value) {
|
||||||
#if defined(VIRTUALINPUTS)
|
|
||||||
int ele = (int16_t)anaIn(ELE_STICK);
|
|
||||||
int ail = (int16_t)anaIn(AIL_STICK);
|
|
||||||
uint32_t v = (ele*ele) + (ail*ail);
|
|
||||||
#else
|
|
||||||
uint32_t v = (int32_t(calibratedStick[ELE_STICK])*calibratedStick[ELE_STICK] + int32_t(calibratedStick[AIL_STICK])*calibratedStick[AIL_STICK]);
|
uint32_t v = (int32_t(calibratedStick[ELE_STICK])*calibratedStick[ELE_STICK] + int32_t(calibratedStick[AIL_STICK])*calibratedStick[AIL_STICK]);
|
||||||
#endif
|
|
||||||
uint32_t q = calc100toRESX(g_model.swashR.value);
|
uint32_t q = calc100toRESX(g_model.swashR.value);
|
||||||
q *= q;
|
q *= q;
|
||||||
if (v > q) {
|
if (v > q) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue