Hallo together,
I want to build a function node to calculate from MPU6050-Gyro to angle
with function:
var korr = -(((Math.asin(msg.payload)/9.81)*180/Math.Pi)-2.8);
msg.payload = korr;
return msg;
... but I do´n´t get a correct result ...
Where´s my mistakt ?
Thank you all
)
jbudd
2
Edit - I didn't spot the value under the debug node.
Colin
3
That is saying Give me the angle whose sin is -5.61
. Since the sin of an angle is always between -1 and +1 that is impossible.
system
Closed
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.