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:
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)
|
||||
{
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue