Watch
0
0
Fork
You've already forked esp32-c_its-companion
0

WIP: Show GNSS (speed, etc)

This commit is contained in:
Jannik Beyerstedt 2026-08-15 19:18:32 +02:00
commit a9a623a047

View file

@ -169,8 +169,10 @@ where
}; };
esp_println::println!( esp_println::println!(
"TODO: GNSS {fix_str} {num_sat:2} sat {}", "TODO: GNSS {fix_str} {num_sat:2} sat {}; {:.2} m/s, {:.0} deg",
self.gnss_hb_state self.gnss_hb_state,
pvt.ground_speed_2d(),
pvt.heading_motion()
); );
// TODO: print on screen? // TODO: print on screen?
@ -424,7 +426,7 @@ fn maneuver_to_str(value: applogic::v2x::map::Maneuvers) -> alloc::string::Strin
/// ///
/// # Errors /// # Errors
/// Human-readable fatal errors /// Human-readable fatal errors
#[allow(clippy::too_many_arguments, clippy::type_complexity)] #[allow(unused, clippy::too_many_arguments, clippy::type_complexity)]
pub fn make_small_display<IoScl, IoSda, IoRes, IoDc, IoCs, IoBl, Spi>( pub fn make_small_display<IoScl, IoSda, IoRes, IoDc, IoCs, IoBl, Spi>(
scl: IoScl, scl: IoScl,
sda: IoSda, sda: IoSda,
@ -507,7 +509,7 @@ where
/// ///
/// # Errors /// # Errors
/// Human-readable fatal errors /// Human-readable fatal errors
#[allow(clippy::too_many_arguments, clippy::type_complexity)] #[allow(unused, clippy::too_many_arguments, clippy::type_complexity)]
pub fn make_large_display<IoScl, IoSda, IoRes, IoDc, IoCs, IoBl, Spi>( pub fn make_large_display<IoScl, IoSda, IoRes, IoDc, IoCs, IoBl, Spi>(
scl: IoScl, scl: IoScl,
sda: IoSda, sda: IoSda,