mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat(vrx): add live Radxa wfb_rx and SoC thermal telemetry ($VRX) to relay, OSD, and GPUI
This commit is contained in:
1 parent
56f37d1320
commit
dfa142c2d1
8 files changed
+358
-9
No files matched your search
@@ -317,6 +317,35 @@ impl OsdOverlay {
|
||||
Self::draw_text(rgba, width, height, vx, vy, vid_buf.as_str(), scale, vid_col);
|
||||
}
|
||||
|
||||
if extra.show_video_stats && g29.vrx.is_live() {
|
||||
let mut vrx_buf = StackStr::<48>::new();
|
||||
if g29.vrx.temp_c >= 0.0 {
|
||||
let _ = write!(
|
||||
vrx_buf,
|
||||
"VRX {:2.0}C {}/{}DBM FEC:{}",
|
||||
g29.vrx.temp_c, g29.vrx.rssi_a_dbm, g29.vrx.rssi_b_dbm, g29.vrx.fec_lost
|
||||
);
|
||||
} else {
|
||||
let _ = write!(
|
||||
vrx_buf,
|
||||
"VRX {}/{}DBM FEC:{}",
|
||||
g29.vrx.rssi_a_dbm, g29.vrx.rssi_b_dbm, g29.vrx.fec_lost
|
||||
);
|
||||
}
|
||||
let rx = width
|
||||
.saturating_sub((vrx_buf.as_str().chars().count() as u32) * 6 * scale + 32)
|
||||
as i32;
|
||||
let ry = 28 + (18 * scale as i32);
|
||||
let vrx_col = if g29.vrx.is_overheating() || g29.vrx.fec_lost > 0 {
|
||||
[255, 70, 70, 255]
|
||||
} else if g29.vrx.temp_c >= 65.0 {
|
||||
[255, 190, 60, 245]
|
||||
} else {
|
||||
[130, 225, 255, 240]
|
||||
};
|
||||
Self::draw_text(rgba, width, height, rx, ry, vrx_buf.as_str(), scale, vrx_col);
|
||||
}
|
||||
|
||||
let radar_top = top_center_bottom + 6;
|
||||
let radar_bottom = Self::draw_gimbal_radar(
|
||||
rgba,
|
||||
|
||||
Reference in new issue
Block a user