to reset the motor encoders I found e.g.,
why is this such a long command with offset and get encoder and all that?
wouldn’t it be possible to have a simple command just like
or what am I perhaps missing about the offset and/or a reset command?
for polling the encoders there are 2 different functions,
1 to pass the port and an 1 int32_t value, returning int (not int32_t which has been passed)
and 1 to pass just the port and returning int32_t:
int get_motor_encoder(uint8_t port, int32_t &value); int32_t get_motor_encoder(uint8_t port);
I see that on the 32-bit ARM7 Pi2 int and int32_t have identical sizes
(not sure about the 64bit ARM53 Pi3 + new Pi2 though),
so why not always use either int or the stdint declaration int32_t ?