constants.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. #ifndef _IV_COMMON_CONSTANTS_
  3. #define _IV_COMMON_CONSTANTS_
  4. //#include <common/car_status.h>
  5. namespace iv {
  6. const std::uint8_t SPEED_MAX = 30; //车速上限
  7. const std::uint8_t BRAKING_PRESSURE_PERCENT_MAX = 50; //刹车压力上限
  8. const std::uint8_t ACCELERATE_PERCENT_MAX = 1; //油门开合度上限
  9. const std::uint8_t CONTROL_SPEED_TOLERANCE = 5; //控制车速时容忍误差范围
  10. const std::uint8_t CONTROL_WHEEL_ANGLE_TOLERANCE = 5; //控制方向盘时容忍误差范围
  11. const std::uint16_t WHEEL_ZERO = 0x1F4A;
  12. //static iv::CarStatus CarStatus_(new iv::CarStatusBasic);
  13. const float SPEED_RATIO = 0.08; //实际车速和can中读出的车速比率
  14. const float Veh_Width = 2.1; //车宽
  15. const float Veh_Lenth = 4.6;
  16. const float Esr_Offset = 0; //ESR偏移量
  17. const float Esr_Y_Offset = 2.5; //ESR纵向偏移量
  18. const std::uint8_t THREAD_EXECUTECONTROL_MAXNUM = 1; //decition_executer 执行线程最大数量
  19. const double MaxValue = 1.7976931348623157E+308; // Represents the largest possible value of a System.Double. This field is constant.
  20. const double MinValue = -1.7976931348623157E+308; // Represents the smallest possible value of a System.Double. This field is constant.
  21. }
  22. #endif // !_IV_COMMON_CONSTANTS_