Daniel
08-02-2011, 10:27 PM
On my video vbox lite I'm trying to create a gear indicator so it displays 0,1,2,3,4,5,or 6 and struggling to get my head around it.
I have an input module so I have RPM.
I used to use Trackvision and had a formula in Excel that did it. I have ported that formula to the MATHS channel now but am struggling at the last step.
This is the formula i'm using in the MATHS channel:
('uIM0'*60*0.00123821)/(('G4'+0.0001)*4.76)
That calculation works fine and gives me a value. Now, in excel, I took the result of that formula, and had another formula in another cell check it and tell me what gear I was in based on the result of the formula above.
The Excel formula is:
=IF(T35>3.267,1,IF(T35>2.13,2,IF(T35>1.517,3,IF(T35>1.147,4,IF(T35>0.921,5,IF(T35>0.001,6))))))
T35 is the cell with the result from the first calculation. How can I port this to the MATHS channel so I can just display what gear I am in? (I don't want to use the gearlever animation, just display the number)
I'm probably being thick :)
I have an input module so I have RPM.
I used to use Trackvision and had a formula in Excel that did it. I have ported that formula to the MATHS channel now but am struggling at the last step.
This is the formula i'm using in the MATHS channel:
('uIM0'*60*0.00123821)/(('G4'+0.0001)*4.76)
That calculation works fine and gives me a value. Now, in excel, I took the result of that formula, and had another formula in another cell check it and tell me what gear I was in based on the result of the formula above.
The Excel formula is:
=IF(T35>3.267,1,IF(T35>2.13,2,IF(T35>1.517,3,IF(T35>1.147,4,IF(T35>0.921,5,IF(T35>0.001,6))))))
T35 is the cell with the result from the first calculation. How can I port this to the MATHS channel so I can just display what gear I am in? (I don't want to use the gearlever animation, just display the number)
I'm probably being thick :)