Quote:
|
Originally Posted by Zalumaskov
If I don't move the robot the pos_x and pos_y stay 0 for a while then suddenly become 32767 (max int value?)
|
Your code probably thinks pos_x and pos_y are equal to -1.
32767 is also a (signed int) -1 printed as an (unsigned int).