mobileye.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. #ifndef MOBILEYE_H
  2. #define MOBILEYE_H
  3. // 0x700
  4. typedef struct _AWS_display
  5. {
  6. bool dusk_time;
  7. bool night_time;
  8. bool lanes_on;
  9. }AWS_display;
  10. // 0x737
  11. typedef struct _lane{
  12. double curvature;
  13. double heading;
  14. bool is_ca; //construction area
  15. bool is_right_LDW_available;
  16. bool is_left_LDW_available;
  17. double yaw;
  18. double pitch;
  19. }lane;
  20. // 0x738
  21. typedef struct _obstacle_status{
  22. int num_obstacles;
  23. int timestamp;
  24. int app_version;
  25. int active_version;
  26. bool is_left_close_rang_cut_in;
  27. bool is_right_close_rang_cut_in;
  28. int go;
  29. int protocol_version;
  30. bool is_close_car;
  31. int failsafe;
  32. }obstacle_status;
  33. // 0x739
  34. typedef struct _obstacle_data_a{
  35. int obstacle_ID;
  36. double obstacle_pos_x;
  37. double obstacle_pos_y;
  38. int blinker_info;
  39. int cut_in_and_out;
  40. double obstacle_rel_vel_x;
  41. int obstacle_type;
  42. int obstacle_status;
  43. bool is_obstacle_brake_lights;
  44. int obstacle_valid;
  45. }obstacle_data_a;
  46. // 0x73a
  47. typedef struct _obstacle_data_b{
  48. double obstacle_length;
  49. double obstacle_width;
  50. int obstacle_age;
  51. int obstacle_lane;
  52. bool is_cipv_flag;
  53. double radar_pos_x;
  54. double radar_vel_x;
  55. int radar_match_confidence;
  56. int matched_radar_id;
  57. }obstacle_data_b;
  58. // 0x73b
  59. typedef struct _obstacle_data_c{
  60. double obstacle_angle_rate;
  61. double obstacle_scale_change;
  62. double object_accel_x;
  63. bool is_obstacle_replaced;
  64. double obstacle_angle;
  65. }obstacle_data_c;
  66. // 0x669
  67. typedef struct _aftermarket_lane{
  68. unsigned int lane_conf_left;
  69. bool is_ldw_availablility_left;
  70. unsigned int lane_type_left;
  71. double dist_to_lane_l;
  72. unsigned int lane_conf_right;
  73. bool is_ldw_availablility_right;
  74. unsigned int lane_type_right;
  75. double dist_to_lane_r;
  76. }aftermarket_lane;
  77. // 0x766
  78. typedef struct _lka_left_lane_a
  79. {
  80. int lane_type;
  81. int quality;
  82. int model_degree;
  83. double position;
  84. double curvature;
  85. double curvature_derivative;
  86. double width_left_marking;
  87. }lka_left_lane_a;
  88. // 0x767
  89. typedef struct _lka_left_lane_b
  90. {
  91. double heading_angle;
  92. double view_range;
  93. bool is_view_range_availability;
  94. }lka_left_lane_b;
  95. // 0x768
  96. typedef struct _lka_right_lane_a
  97. {
  98. int lane_type;
  99. int quality;
  100. int model_degree;
  101. double position;
  102. double curvature;
  103. double curvature_derivative;
  104. double width_left_marking;
  105. }lka_right_lane_a;
  106. // 0x769
  107. typedef struct _lka_right_lane_b
  108. {
  109. double heading_angle;
  110. double view_range;
  111. bool is_view_range_availability;
  112. }lka_right_lane_b;
  113. // 0x76c
  114. typedef struct _next_lane_a
  115. {
  116. int lane_type;
  117. int quality;
  118. int model_degree;
  119. double position;
  120. double curvature;
  121. double curvature_derivative;
  122. double lane_mark_width;
  123. }next_lane_a;
  124. // 0x76d
  125. typedef struct _next_lane_b
  126. {
  127. double heading_angle;
  128. double view_range;
  129. bool is_view_range_availability;
  130. }next_lane_b;
  131. // 0x76a
  132. typedef struct _ref_points
  133. {
  134. double ref_point_1_position;
  135. double ref_point_1_dist;
  136. bool is_ref_point_1_validity;
  137. double ref_point_2_position;
  138. double ref_point_2_dist;
  139. bool is_ref_point_2_validity;
  140. }ref_points;
  141. // 0x76b
  142. typedef struct _num_of_next_lane_mark_reported
  143. {
  144. int num_of_next_lane_mark_reported;
  145. }num_of_next_lane_mark_reported;
  146. typedef struct _obstacle_info
  147. {
  148. obstacle_data_a obs_a;
  149. obstacle_data_b obs_b;
  150. obstacle_data_c obs_c;
  151. }obstacle_info;
  152. #endif // MOBILEYE_H