need raw values

This commit is contained in:
Wastl Kraus 2025-11-01 20:12:02 +01:00
parent 871423aa6b
commit cc9d492b72
2 changed files with 10 additions and 0 deletions

View File

@ -235,6 +235,13 @@ dshot_result_t DShotRMT::setMotorSpinDirection(bool reversed)
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
dshot_result_t DShotRMT::saveESCSettings()
{

View File

@ -56,6 +56,9 @@ public:
// 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);
// Sends a raw DShot command to the ESC.
dshot_result_t sendRawCommand(uint16_t command_value);
// Retrieves telemetry data from the ESC.
dshot_result_t getTelemetry();