Torque

Forums

Forums

Notifications
Clear all

Clinometer setting

13 Posts
3 Users
0 Reactions
601 Views
(@bigjosh)
Posts: 3
Active Member
Topic starter
 

Are the "Degrees" setting changeable to "percent"?

I have searched in settings of app and in this forum, could not find answer.

Thanks

Josh

 
Posted : 23/05/2016 2:45 pm
(@capp777)
Posts: 2999
Famed Member
 

Nope but...

If Torque supports TAN function...

%Grade = Tan(Slope Degrees)*100

For example...

100% Grade = Tan(45°)*100
57.7% Grade = Tan(30°)*100
10.5% Grade = Tan(6°)*100
5.24% Grade = Tan(3°)*100

If Torque does support it you could create a
custom pid with the appropriate equation:

Name: Percent Grade
Header: blank
Mode/Pid: blank
Equation:
EWMAF(0.05:Avg(10:Tan(abs([FF124C])*0.017453293)*100)) or
EWMAF(0.05:Avg(10:Tan(abs(Val{Tilt(z)})*0.017453293)*100))
Units: %Grade

Note my pitch degrees went negative as my
phone tilted upward from a calibrated position
hence abs().

If its not supported maybe Ian can add?
Please? Please? 🙂

Edited.

Z axis worked better than Y for matching
pitch meter.

 
Posted : 23/05/2016 5:25 pm
(@admin)
Posts: 6550
Member Admin
 

Ok, I'll look at adding sin,tan/etc to an update after the one that's hopefully going to be released later today

 
Posted : 21/06/2016 9:50 am
(@admin)
Posts: 6550
Member Admin
 

Added in the update just sent out. Functions can't be nested at the moment (I'll sort that out in a later release) so at the moment sin(cos(abs(tan(x)))) probably won't work, though sin(x)+cos(y) and sin(val{name}) will work

Also recommend using the N0, N1, N2 variables now instead of the A, B, C stuff

 
Posted : 23/06/2016 3:07 pm
(@capp777)
Posts: 2999
Famed Member
 

Have the variables R0, R1, etc changed to
N0, N1, etc?

 
Posted : 23/06/2016 8:14 pm
(@capp777)
Posts: 2999
Famed Member
 

Tan(45 radians)=1.61???

not...

Tan(45 degrees)=1.00!!!

Torque is defaulting to radians.

degrees * 0.017453293 = radians so...

Equation:
EWMAF(0.05:Avg(10:Tan(abs([FF124C])*0.017453293)*100)) or
EWMAF(0.05:Avg(10:Tan(abs(Val{Tilt(z)})*0.017453293)*100))
from a calibrated vertical position

Edited.

 
Posted : 23/06/2016 11:50 pm
(@admin)
Posts: 6550
Member Admin
 

Hi!

Yep - the functions are basically as in the documents from: https://docs.oracle.com/javase/7/docs/api/java/lang/Math.html#cos(double)

so it will be radians

Edit: see below

 
Posted : 24/06/2016 7:35 am
(@admin)
Posts: 6550
Member Admin
 

Thinking about it, it isn't entirely helpful being in radians, so I'm likely to change this to degrees in the next update (which should hopefully save on equation 'cruft')

Whilst I'm there - if there are any others in that list(or not in the list) that you could see being useful, let me know 🙂

 
Posted : 24/06/2016 8:00 am
(@capp777)
Posts: 2999
Famed Member
 

SQRT could be used to calculate
acfm if the delta p is known.

No comment about the variable names
in the post above? R0 vs N0.

 
Posted : 24/06/2016 10:15 am
(@admin)
Posts: 6550
Member Admin
 

Hi!

R0 is the 'raw' variable (includes part of the response before the A,B,C start). The ABC variables start from the actual data after headers, lengths, ID bytes (etc, etc) are sent depending on the protocol used

But as far as the Nx variables go:

N0 is the same as A
N1 is the same as B
(etc)
for the variable naming thing - it's basically a replacement for the A,B,C stuff - this is mainly due to the way the parser works. The A,B,C variables will continue to work and I have no plan to stop them being used, though if you get strange results, try with N0, N1, (etc) variables instead

 
Posted : 24/06/2016 9:30 pm
(@capp777)
Posts: 2999
Famed Member
 

Since you are adding J1939, adding a %Grade
gauge would be very useful for your heavy equipment
users. Just a suggestion 🙂 .

 
Posted : 25/11/2017 1:54 pm
(@capp777)
Posts: 2999
Famed Member
 

Quote from Capp777 on November 25, 2017

Since you are adding J1939, adding a %Grade
gauge would be very useful for your heavy equipment
users. Just a suggestion 🙂 .

End Quote.

%Grade display still a suggestion...

 
Posted : 03/01/2022 12:57 am
(@admin)
Posts: 6550
Member Admin
 

I'll try to get something on this sorted and into the next feature push (possibly next week)

 
Posted : 06/01/2022 9:16 am
Share:

  Follow me on twitter