| 259 | } |
| 260 | |
| 261 | int 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 | |
| 270 | int GoPiGo3::set_motor_limits(uint8_t port, uint8_t power, uint16_t dps){ |
| 271 | spi_array_out[0] = Address; |
no test coverage detected