need raw values
This commit is contained in:
parent
871423aa6b
commit
cc9d492b72
|
|
@ -235,6 +235,13 @@ dshot_result_t DShotRMT::setMotorSpinDirection(bool reversed)
|
||||||
return sendCommand(command, SETTINGS_COMMAND_REPEATS, SETTINGS_COMMAND_DELAY_US);
|
return sendCommand(command, SETTINGS_COMMAND_REPEATS, SETTINGS_COMMAND_DELAY_US);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sends a raw DShot command to the ESC.
|
||||||
|
dshot_result_t DShotRMT::sendRawCommand(uint16_t command_value)
|
||||||
|
{
|
||||||
|
_packet = _buildDShotPacket(command_value);
|
||||||
|
return _sendDShotFrame(_packet);
|
||||||
|
}
|
||||||
|
|
||||||
// Use with caution
|
// Use with caution
|
||||||
dshot_result_t DShotRMT::saveESCSettings()
|
dshot_result_t DShotRMT::saveESCSettings()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,9 @@ public:
|
||||||
// Sends a DShot command to the ESC with a specified repeat count and delay.
|
// Sends a DShot command to the ESC with a specified repeat count and delay.
|
||||||
dshot_result_t sendCommand(dshotCommands_e command, uint16_t repeat_count, uint16_t delay_us);
|
dshot_result_t sendCommand(dshotCommands_e command, uint16_t repeat_count, uint16_t delay_us);
|
||||||
|
|
||||||
|
// Sends a raw DShot command to the ESC.
|
||||||
|
dshot_result_t sendRawCommand(uint16_t command_value);
|
||||||
|
|
||||||
// Retrieves telemetry data from the ESC.
|
// Retrieves telemetry data from the ESC.
|
||||||
dshot_result_t getTelemetry();
|
dshot_result_t getTelemetry();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue