code: func (g *Driver) GetMotorEncoder(motor Motor) (encoder int64, err error) {
  	message := GET_MOTOR_ENCODER_RIGHT
  	if motor == MOTOR_LEFT {
  		message = GET_MOTOR_ENCODER_LEFT
  	}
  	response, err := g.readUint32(goPiGo3Address, message)
  	if err != nil {
  		return encoder, err
  	}
  	encoder = int64(response)
  	if response&0x80000000 != 0 {
  		encoder = encoder - 0x100000000
  	}
  	encoder = encoder / MOTOR_TICKS_PER_DEGREE
  	return encoder, nil
  }
docs: // GetMotorEncoder reads a motor's encoder in degrees.