0
0
Fork 0

spat: tweak glosa params

GNSS position accuracy with the L67K seems quite bad in some situations.
So we need to increase the lane offset threshold.
This commit is contained in:
Jannik Beyerstedt 2026-06-22 22:56:58 +02:00
commit efd73a3f1c

View file

@ -31,13 +31,13 @@ const PRUNE_INTERVAL: chrono::Duration = chrono::Duration::seconds(5);
#[cfg(feature = "spat")]
const GLOSA_SEARCH_DIST_M: f32 = 400.;
#[cfg(feature = "spat")]
const GLOSA_SEARCH_ANGLE_PARAMS: [(f32, f32); 2] = [(400., 45.), (50., 180.)]; // far and near (distance, angle) tuple
const GLOSA_SEARCH_ANGLE_PARAMS: [(f32, f32); 2] = [(400., 20.), (50., 180.)]; // far and near (distance, angle) tuple
#[cfg(feature = "spat")]
const GLOSA_LANE_HEADING_DIFF_DEG: f32 = 35.;
#[cfg(feature = "spat")]
const GLOSA_AT_LANE_OFFSET_M: f64 = 10.;
const GLOSA_AT_LANE_OFFSET_M: f64 = 30.;
#[cfg(feature = "spat")]
const GLOSA_LANE_LEFT_OFFSET_M: f64 = 20.;
const GLOSA_LANE_LEFT_OFFSET_M: f64 = 50.;
#[cfg(feature = "spat")]
const GLOSA_STOP_LINE_PASSED_M: f64 = 5.;