Skip to content

Commit

Permalink
回転出力計の表示を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
xsuz committed Jul 20, 2024
1 parent 6e14265 commit f159af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/tachometer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl AppUI for TachUI {
[theta.cos(), theta.sin()]
})
.collect();
let theta = (tach_data.cadence as f64 / 180.0) * PI;
let theta = (1.0-tach_data.cadence as f64 / 180.0) * PI;

plot_ui.line(
Line::new(circle_points).color(Color32::from_rgb(127, 127, 127)),
Expand Down

0 comments on commit f159af5

Please sign in to comment.