48 CanSender<::apollo::canbus::Zhongyun>*
const can_sender,
49 MessageManager<::apollo::canbus::Zhongyun>*
const message_manager)
52 bool Start()
override;
70 void Emergency()
override;
82 void Brake(
double acceleration)
override;
86 void Throttle(
double throttle)
override;
90 void Acceleration(
double acc)
override;
94 void Steer(
double angle)
override;
99 void Steer(
double angle,
double angle_spd)
override;
109 bool VerifyID()
override;
110 void ResetProtocol();
111 bool CheckChassisError();
114 void SecurityDogThreadFunc();
115 virtual bool CheckResponse(
const int32_t flags,
bool need_wait);
116 void set_chassis_error_mask(
const int32_t mask);
117 int32_t chassis_error_mask();
130 std::unique_ptr<std::thread> thread_;
131 bool is_chassis_error_ =
false;
133 std::mutex chassis_error_code_mutex_;
136 std::mutex chassis_mask_mutex_;
137 int32_t chassis_error_mask_ = 0;