mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_RCTelemetry: correct CSRF->CRSF
Co-authored-by: Andy Piper <github@andypiper.com> Co-authored-by: Andrew Tridgell <andrew@tridgell.net>
This commit is contained in:
parent
3b9c9497aa
commit
cca292f222
@ -78,7 +78,7 @@ void AP_CRSF_Telem::setup_wfq_scheduler(void)
|
|||||||
// priority[i] = 1/_scheduler.packet_weight[i]
|
// priority[i] = 1/_scheduler.packet_weight[i]
|
||||||
// rate[i] = LinkRate * ( priority[i] / (sum(priority[1-n])) )
|
// rate[i] = LinkRate * ( priority[i] / (sum(priority[1-n])) )
|
||||||
|
|
||||||
// CSRF telemetry rate is 150Hz (4ms) max, so these rates must fit
|
// CRSF telemetry rate is 150Hz (4ms) max, so these rates must fit
|
||||||
add_scheduler_entry(50, 100); // heartbeat 10Hz
|
add_scheduler_entry(50, 100); // heartbeat 10Hz
|
||||||
add_scheduler_entry(5, 20); // parameters 50Hz (generally not active unless requested by the TX)
|
add_scheduler_entry(5, 20); // parameters 50Hz (generally not active unless requested by the TX)
|
||||||
add_scheduler_entry(50, 120); // Attitude and compass 8Hz
|
add_scheduler_entry(50, 120); // Attitude and compass 8Hz
|
||||||
|
@ -74,7 +74,7 @@ void AP_GHST_Telem::setup_wfq_scheduler(void)
|
|||||||
// priority[i] = 1/_scheduler.packet_weight[i]
|
// priority[i] = 1/_scheduler.packet_weight[i]
|
||||||
// rate[i] = LinkRate * ( priority[i] / (sum(priority[1-n])) )
|
// rate[i] = LinkRate * ( priority[i] / (sum(priority[1-n])) )
|
||||||
|
|
||||||
// CSRF telemetry rate is 150Hz (4ms) max, so these rates must fit
|
// CRSF telemetry rate is 150Hz (4ms) max, so these rates must fit
|
||||||
add_scheduler_entry(50, 120); // Attitude and compass 8Hz
|
add_scheduler_entry(50, 120); // Attitude and compass 8Hz
|
||||||
add_scheduler_entry(200, 1000); // VTX parameters 1Hz
|
add_scheduler_entry(200, 1000); // VTX parameters 1Hz
|
||||||
add_scheduler_entry(1300, 500); // battery 2Hz
|
add_scheduler_entry(1300, 500); // battery 2Hz
|
||||||
|
Loading…
Reference in New Issue
Block a user