Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SBUS2] Fix units reported in esc sensor and report rotorflight's rpm, instead of escData #135

Merged
merged 4 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ It runs at a fixed baud rate of 100000 8e2.
```

### Radio Configuration
The following sensors should setup on your radio
The following sensors should setup on your radio and Gear ratio for RPM Sensor and Kontronik ESC to 1.00 in your radio.
| Slot | Sensort Type | Notes |
| --- | --- | --- |
| 1 | Voltage | FC Voltage sensor. Pack and cell voltages |
Expand Down
4 changes: 2 additions & 2 deletions src/main/telemetry/sbus2.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void handleSbus2Telemetry(timeUs_t currentTimeUs)

if (escData != NULL) {
// 8 slots, esc
send_kontronik(8, escData->voltage * 0.1f, escData->consumption * 100, escData->erpm, escData->current * 0.01f , escData->temperature * 10, escData->temperature2 * 10, escData->bec_current * 10, escData->pwm);
send_kontronik(8, escData->voltage * 0.1f, escData->consumption * 100, rpm, escData->current * 0.01f, escData->temperature * 0.1f, escData->temperature2 * 0.1f, escData->bec_current * 10, escData->pwm * 0.1f);
}
}

Expand Down Expand Up @@ -160,4 +160,4 @@ FAST_CODE void taskSendSbus2Telemetry(timeUs_t currentTimeUs)
}
}

#endif
#endif