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

Voltage ok on simu

This commit is contained in:
bsongis 2012-02-05 10:28:07 +00:00
parent d3c4cb2534
commit a57727b028

View file

@ -417,8 +417,10 @@ int main(int argc,char **argv)
uint16_t anaIn(uint8_t chan)
{
if(chan<4) return th9xSim->sliders[chan]->getValue();
return th9xSim->knobs[chan]->getValue();
//return 512 - 512*10*chan/100;
//return (rand() & 0x1f) + 0x2f8;
if (chan == 7)
return 1500;
else if (chan<4)
return th9xSim->sliders[chan]->getValue();
else
return th9xSim->knobs[chan]->getValue();
}