mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-12 19:33:43 +08:00
3835061760
old-commit-hash: e90c41c576b4630f3039be671ad5f203a865f4c8
38 lines
663 B
C
38 lines
663 B
C
#ifndef MODELDATA_H
|
|
#define MODELDATA_H
|
|
|
|
#define MODEL_PATH_DISTANCE 192
|
|
#define POLYFIT_DEGREE 4
|
|
#define SPEED_PERCENTILES 10
|
|
|
|
typedef struct PathData {
|
|
float points[MODEL_PATH_DISTANCE];
|
|
float prob;
|
|
float std;
|
|
float stds[MODEL_PATH_DISTANCE];
|
|
float poly[POLYFIT_DEGREE];
|
|
} PathData;
|
|
|
|
typedef struct LeadData {
|
|
float dist;
|
|
float prob;
|
|
float std;
|
|
float rel_y;
|
|
float rel_y_std;
|
|
float rel_v;
|
|
float rel_v_std;
|
|
float rel_a;
|
|
float rel_a_std;
|
|
} LeadData;
|
|
|
|
typedef struct ModelData {
|
|
PathData path;
|
|
PathData left_lane;
|
|
PathData right_lane;
|
|
LeadData lead;
|
|
LeadData lead_future;
|
|
float speed[SPEED_PERCENTILES];
|
|
} ModelData;
|
|
|
|
#endif
|