Skip to content

Commit 2a3176f

Browse files
committed
feat: Update shifting alert colors based on #16. Next step is to add a short-shifting analyzer
1 parent 75303ac commit 2a3176f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

assets/shift-grey.png

1.19 KB
Loading

assets/shift-red.png

1.19 KB
Loading

src/live/alerts_view.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl LiveTelemetryApp {
8282
fn show_alerts(&mut self, ui: &mut egui::Ui) {
8383
// load warning based on telemetry data
8484
let mut abs_image = egui::include_image!("../../assets/brake-green.png");
85-
let mut shift_image = egui::include_image!("../../assets/shift-orange.png");
85+
let mut shift_image = egui::include_image!("../../assets/shift-grey.png");
8686
let mut wheelspin_image = egui::include_image!("../../assets/wheelspin-green.png");
8787
if let Some(back) = self.telemetry_points.back() {
8888
if back.brake > 0.4 && !back.abs_active {
@@ -97,6 +97,9 @@ impl LiveTelemetryApp {
9797
{
9898
shift_image = egui::include_image!("../../assets/shift-green.png");
9999
}
100+
if back.cur_rpm > back.car_shift_ideal_rpm + 100. {
101+
shift_image = egui::include_image!("../../assets/shift-red.png");
102+
}
100103

101104
if let Some(TelemetryAnnotation::Bool(true)) = back.annotations.get("wheelspin") {
102105
wheelspin_image = egui::include_image!("../../assets/wheelspin-red.png");

0 commit comments

Comments
 (0)