Log in

View Full Version : Broken? - rs_GetCompassAngleRadians



Kasi
01-09-2012, 08:18 PM
Returning false values for me? someone verify?

Pic Should be something close to 90 degress's but i get
4.79912731906067

Narcle
01-09-2012, 08:30 PM
Compass we use goes clockwise.


0
270 90
180

Kasi
01-09-2012, 08:35 PM
Compass we use goes clockwise.


0
270 90
180


it's still giving false values regardless of whether the compass goes clockwise

Narcle
01-09-2012, 08:43 PM
it's still giving false values regardless of whether the compass goes clockwise

The compass will always be off. There's only so many pixels we can base it off and it moves randomly.

It'll be off by 2.6 degrees (w/e that is in radians).

Zyt3x
01-09-2012, 08:46 PM
How is this a false positive? 4.7 radians = 269 degrees (link (http://www.trueknowledge.com/q/4.7_radians_to_degrees)), then flip it because we're using it clockwise = 91 degrees

tls
01-09-2012, 08:48 PM
That isn't a false value. It does it in radians. So the compass is at 3pi/2...which is ~4.71

Kasi
01-09-2012, 08:48 PM
ah yer nvm i got confused, thanks anyways
Repped Narcle