Skip to content

Commit

Permalink
Canbus : update ultrasonic
Browse files Browse the repository at this point in the history
  • Loading branch information
Capri2014 authored and lianglia-apollo committed Jun 29, 2018
1 parent a373001 commit 882f8c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/canbus/vehicle/lincoln/lincoln_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ Chassis LincolnController::chassis() {
}
}

if (chassis_detail.has_surround()) {
chassis_.mutable_surround()->CopyFrom(chassis_detail.surround());
}
// give engage_advice based on error_code and canbus feedback
if (chassis_error_mask_ || (chassis_.throttle_percentage() == 0.0) ||
(chassis_.brake_percentage() == 0.0)) {
Expand Down Expand Up @@ -788,8 +791,8 @@ void LincolnController::SecurityDogThreadFunc() {
std::chrono::duration<double, std::micro> elapsed{end - start};
if (elapsed < default_period) {
std::this_thread::sleep_for(default_period - elapsed);
start =
common::time::AsInt64<common::time::micros>(common::time::Clock::Now());
start = common::time::AsInt64<common::time::micros>(
common::time::Clock::Now());
} else {
AERROR_EVERY(100)
<< "Too much time consumption in LincolnController looping process:"
Expand Down

0 comments on commit 882f8c6

Please sign in to comment.