Get Bargraph to display 125% as maximum?

More
31 Jul 2016 07:10 #52307 by D_an_W
Morning folks,
As the titles says, when editing the GUI is there any way to get -125% to 125% represented in a bargraph or can it only show -100% to 100%?

*** Walkera Devo 10 * 4-in-1 Module * Deviation v5 *** *** Walkera Devo 7E * A7105 Module * 2x 3 Way Switches * Power Mod * Deviation v5 ***

Please Log in or Create an account to join the conversation.

More
31 Jul 2016 17:22 #52329 by Deal57
Replied by Deal57 on topic Get Bargraph to display 125% as maximum?
I tried several approaches, and the bargraph seems to use -100 and 100 as the only bounds. However you can use a Virtual channel set to scale 100 and assign the bargraph there.
1. Throttle to 125%
2, Virt1 source Thr scale 100%,1:1 curve.
3. On the Main pages set bargraph source Virt1. I use my throttle "Big-box" to show the Ch3 output since in this case the throttle is channel 3..

I set up another "Big-box" to Virt1 so you can see the difference.



Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Attachments:

Please Log in or Create an account to join the conversation.

More
31 Jul 2016 18:39 #52334 by D_an_W
Replied by D_an_W on topic Get Bargraph to display 125% as maximum?
Thanks for that, any chance of the ini file (Or just the code) so I can try and incorporate it into mine?

*** Walkera Devo 10 * 4-in-1 Module * Deviation v5 *** *** Walkera Devo 7E * A7105 Module * 2x 3 Way Switches * Power Mod * Deviation v5 ***

Please Log in or Create an account to join the conversation.

More
31 Jul 2016 19:15 #52336 by Deal57
Replied by Deal57 on topic Get Bargraph to display 125% as maximum?
It's actually easiest to do this in the GUI, IMO. But if you wish, a question: is this a CP Heli? If so, the throttle display from -125-125 makes sense. The alternative is to use 0% (off) to 100 or 125% (fully on); I usually use 0-100% for my FP helis and Quads .

Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!

Please Log in or Create an account to join the conversation.

More
31 Jul 2016 19:58 - 02 Aug 2016 05:49 #52338 by D_an_W
Replied by D_an_W on topic Get Bargraph to display 125% as maximum?
Many thanks Deal57 & Happy|Harry, have it working just as you advised :woohoo:
name=Super CP 3D
mixermode=Advanced
icon=SuperCP.bmp

[radio]
protocol=DEVO
num_channels=7
tx_power=1mW

[protocol_opts]
Telemetry=On

[channel1]
template=expo_dr
[mixer]
src=ELE
dest=Ch1
curvetype=expo
points=30,30
[mixer]
src=ELE
dest=Ch1
switch=ELE DR1
scalar=125
curvetype=expo
points=0,0

[channel2]
template=expo_dr
[mixer]
src=AIL
dest=Ch2
curvetype=expo
points=30,30
[mixer]
src=AIL
dest=Ch2
switch=AIL DR1
scalar=125
curvetype=expo
points=0,0

[channel3]
safetysw=RUD DR0
safetyval=-100
template=complex
[mixer]
src=THR
dest=Ch3
curvetype=7point
points=-100,-66,-33,0,33,66,100
[mixer]
src=THR
dest=Ch3
switch=FMODE1
curvetype=7point
points=100,93,86,80,86,93,100
[mixer]
src=THR
dest=Ch3
switch=FMODE2
curvetype=fixed

[channel4]
template=simple
[mixer]
src=RUD
dest=Ch4
scalar=125
curvetype=expo
points=-10,-10

[channel6]
template=complex
[mixer]
src=THR
dest=Ch6
usetrim=0
curvetype=7point
points=-35,-25,-15,0,24,49,75
[mixer]
src=THR
dest=Ch6
switch=FMODE1
usetrim=0
curvetype=7point
points=-75,-49,-24,0,24,49,75
[mixer]
src=THR
dest=Ch6
switch=FMODE2
usetrim=0
curvetype=7point
points=-75,-49,-24,0,24,49,75
[mixer]
src=AIL
dest=Ch6
switch=RUD DR0
scalar=0
usetrim=0
curvetype=fixed

[channel7]
template=complex
[mixer]
src=Ch7
dest=Ch7
scalar=64
usetrim=0
curvetype=fixed
[mixer]
src=Ch7
dest=Ch7
switch=FMODE1
scalar=64
usetrim=0
curvetype=fixed
[mixer]
src=Ch7
dest=Ch7
switch=FMODE2
scalar=64
usetrim=0
curvetype=fixed

[virtchan1]
template=simple
[mixer]
src=ELE
dest=Virt1

[virtchan2]
template=simple
[mixer]
src=AIL
dest=Virt2

[virtchan4]
template=simple
[mixer]
src=RUD
dest=Virt4

[trim1]
src=LEFT_V
pos=TRIMLV+
neg=TRIMLV-

[trim2]
src=RIGHT_V
pos=TRIMRV+
neg=TRIMRV-

[trim3]
src=LEFT_H
pos=TRIMLH+
neg=TRIMLH-

[trim4]
src=RIGHT_H
pos=TRIMRH+
neg=TRIMRH-

[timer1]
src=THR

[telemalarm1]
source=Volt2
above=1
value=34

[datalog]
switch=None
rate=1 sec

[safety]
Auto=min

[gui-128x64]
Model=1,11
V-trim=55,11,1
H-trim=2,59,3
V-trim=69,11,2
H-trim=77,59,4
Small-box=77,6,TelemV2
Small-box=4,47,Timer1
Bargraph=79,30,Ch3
Bargraph=85,30,Virt4
Bargraph=91,30,Virt1
Bargraph=97,30,Virt2
Bargraph=103,30,Ch5
Bargraph=109,30,Ch6
Bargraph=115,30,Ch7
Bargraph=121,30,Ch8
Toggle=78,17,233,235,0,RUD DR
Toggle=90,17,6,69,0,ELE DR
Toggle=104,17,6,69,0,AIL DR
Toggle=116,17,253,255,225,FMODE
Battery=102,1
TxPower=75,1
quickpage1=Model setup
quickpage2=Mixer
quickpage3=Channel monitor
quickpage4=Telemetry monitor

*** Walkera Devo 10 * 4-in-1 Module * Deviation v5 *** *** Walkera Devo 7E * A7105 Module * 2x 3 Way Switches * Power Mod * Deviation v5 ***
Last edit: 02 Aug 2016 05:49 by D_an_W.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum