Do you mean by X/Y used in calculations of the angle?
It may be confusing to look separately the HB and LB.
They make a 16 bit 2's complement word, where the bit 15 (or bit 7 in HB) is the sign bit.
It is easy when converted to a signed number.
Hi J,
I get the same thought result for XY of Angles as in this case the XY of the XYZ sequence. In Angle XY we have changed to A and O, which makes things work, and in this case X_RAW and Y_RAW make sense, as they mean something.
Yes, I was looking at individual BYTEs, which don't make sense, until 2's compliment rules are applied. Now I see that they must not be separated, for any sense. Here is a sequence, showing that how I was thinking doesn't work. Look at the first pair.
(I also checked Registers 13 and 14 (DO NOT ACCESS), and the program skips them.
EDIT: I kind of understand 2's compliment, but we could repeat hours of trying, like two years ago, and me never quite being familiar with it. It's probably better to carry on with something more constructive.
C.
32737.00,32602.00,32662.00
185, 255, 179, 254, 43, 255
32732.00,32601.00,32661.00
180, 255, 182, 254, 44, 255
32730.00,32603.00,32662.00
185, 255, 177, 254, 45, 255
32732.00,32600.00,32662.00
185, 255, 181, 254, 41, 255
32732.00,32602.00,32660.00
196, 255, 184, 254, 40, 255
32738.00,32604.00,32660.00
205, 255, 187, 254, 43, 255
32742.00,32605.00,32661.00
216, 255, 184, 254, 54, 255
32748.00,32604.00,32667.00
229, 255, 197, 254, 41, 255
32754.00,32610.00,32660.00
233, 255, 193, 254, 43, 255
32756.00,32608.00,32661.00
245, 255, 189, 254, 47, 255
32762.00,32606.00,32663.00
250, 255, 196, 254, 44, 255
32765.00,32610.00,32662.00
249, 255, 203, 254, 41, 255
32764.00,32613.00,32660.00
250, 255, 200, 254, 36, 255
32765.00,32612.00,32658.00
5, 0, 203, 254, 43, 255
2.00,32613.00,32661.00
5, 0, 201, 254, 43, 255
2.00,32612.00,32661.00
10, 0, 208, 254, 44, 255
5.00,32616.00,32662.00
10, 0, 212, 254, 46, 255
5.00,32618.00,32663.00
8, 0, 210, 254, 50, 255
4.00,32617.00,32665.00
21, 0, 213, 254, 47, 255
10.00,32618.00,32663.00
21, 0, 211, 254, 43, 255
10.00,32617.00,32661.00
16, 0, 212, 254, 42, 255
8.00,32618.00,32661.00
18, 0, 230, 254, 44, 255
9.00,32627.00,32662.00
27, 0, 227, 254, 47, 255
13.00,32625.00,32663.00
22, 0, 234, 254, 46, 255
11.00,32629.00,32663.00
33, 0, 241, 254, 47, 255
16.00,32632.00,32663.00
36, 0, 238, 254, 48, 255
18.00,32631.00,32664.00