mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
Merge pull request #2980 from haslinghuis/dshot_extended_telemetry_on_unused_ranges
This commit is contained in:
commit
02a1522ef0
1 changed files with 11 additions and 1 deletions
|
@ -904,6 +904,16 @@ motors.initialize = async function (callback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
// Send enable extended dshot telemetry command
|
||||||
|
const buffer = [];
|
||||||
|
|
||||||
|
buffer.push8(DshotCommand.dshotCommandType_e.DSHOT_CMD_TYPE_BLOCKING);
|
||||||
|
buffer.push8(255); // Send to all escs
|
||||||
|
buffer.push8(1); // 1 command
|
||||||
|
buffer.push8(13); // Enable extended dshot telemetry
|
||||||
|
|
||||||
|
MSP.send_message(MSPCodes.MSP2_SEND_DSHOT_COMMAND, buffer);
|
||||||
|
|
||||||
document.addEventListener('keydown', e => disableMotorTest(e));
|
document.addEventListener('keydown', e => disableMotorTest(e));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1071,7 +1081,7 @@ motors.initialize = async function (callback) {
|
||||||
telemetryText += "</span>";
|
telemetryText += "</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FC.MOTOR_CONFIG.use_esc_sensor) {
|
if (FC.MOTOR_CONFIG.use_dshot_telemetry || FC.MOTOR_CONFIG.use_esc_sensor) {
|
||||||
|
|
||||||
let escTemperature = FC.MOTOR_TELEMETRY_DATA.temperature[i];
|
let escTemperature = FC.MOTOR_TELEMETRY_DATA.temperature[i];
|
||||||
escTemperature = escTemperature.toString().padStart(MAX_VALUE_SIZE);
|
escTemperature = escTemperature.toString().padStart(MAX_VALUE_SIZE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue