MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / set_motor_dps

Method set_motor_dps

Software/C/GoPiGo3.cpp:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261int GoPiGo3::set_motor_dps(uint8_t port, int16_t dps){
262 spi_array_out[0] = Address;
263 spi_array_out[1] = GPGSPI_MESSAGE_SET_MOTOR_DPS;
264 spi_array_out[2] = port;
265 spi_array_out[3] = ((dps >> 8) & 0xFF);
266 spi_array_out[4] = (dps & 0xFF);
267 return spi_transfer_array(5, spi_array_out, spi_array_in);
268}
269
270int GoPiGo3::set_motor_limits(uint8_t port, uint8_t power, uint16_t dps){
271 spi_array_out[0] = Address;

Callers 4

controllerFunction · 0.45
runnerFunction · 0.45
runnerFunction · 0.45
robot_commandsFunction · 0.45

Calls 1

spi_transfer_arrayFunction · 0.85

Tested by

no test coverage detected