updated PHI_DEG

Field of view
This commit is contained in:
lbaumberger
2026-03-27 09:39:00 +01:00
parent e8f5e94226
commit fc76721f06
+7 -10
View File
@@ -29,27 +29,24 @@ const double C = 0.2;
// TODO: change this // TODO: change this
// $\phi$ // $\phi$
const double PHI_DEG = 120.0; // Field of view
const double PHI_DEG = 200.0;
// TODO: change this // TODO: change this
const double DISTANCE = 2.0; const double DISTANCE = 2.0;
// Helper functions // Helper functions
Vector2d get_desired_direction(Pedestrian& p); Vector2d get_desired_direction(Pedestrian &p);
Vector2d get_actual_direction(Pedestrian& p); Vector2d get_actual_direction(Pedestrian &p);
double w(Vector2d e, Vector2d f); double w(Vector2d e, Vector2d f);
// Force functions // Force functions
void compute_acceleration_term(Pedestrian* p); void compute_acceleration_term(Pedestrian *p);
void compute_repulsive_effects_from_pedestrians(Pedestrian* P, Pedestrian *p, int N);
void compute_repulsive_effects_from_borders(Sidewalk& S, Pedestrian* p);
void compute_repulsive_effects_from_pedestrians(Pedestrian *P, Pedestrian *p, int N);
void compute_repulsive_effects_from_borders(Sidewalk &S, Pedestrian *p);