File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments