CommandHelper

CommandHelper

46.5k Downloads

get_yaw and get_pitch don't match pfacing

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-3056 - Reported by PseudoKnight

Since build 2860.

The new calculations for get_yaw() go counter-clockwise, whereas pfacing's yaw goes clockwise. (eg. get_yaw will produce 15 where pfacing produces 345) This is worse than it was before when it only mismatched pfacing when it went above 270 and get_yaw went to -90. At least they matched exactly 75% of the time.

Similarly get_pitch does the reverse of pfacing()[1].

commented

Comment by Pieter12345

Fixed in:
#281

The return values of get_pitch and get_yaw now return the same values as pfacing.