mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 23:35:17 +03:00
Voltage ok on simu
This commit is contained in:
parent
d3c4cb2534
commit
a57727b028
1 changed files with 6 additions and 4 deletions
10
src/simu.cpp
10
src/simu.cpp
|
@ -417,8 +417,10 @@ int main(int argc,char **argv)
|
||||||
|
|
||||||
uint16_t anaIn(uint8_t chan)
|
uint16_t anaIn(uint8_t chan)
|
||||||
{
|
{
|
||||||
if(chan<4) return th9xSim->sliders[chan]->getValue();
|
if (chan == 7)
|
||||||
return th9xSim->knobs[chan]->getValue();
|
return 1500;
|
||||||
//return 512 - 512*10*chan/100;
|
else if (chan<4)
|
||||||
//return (rand() & 0x1f) + 0x2f8;
|
return th9xSim->sliders[chan]->getValue();
|
||||||
|
else
|
||||||
|
return th9xSim->knobs[chan]->getValue();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue