提交 fa7e766e 编写于 作者: C changsh726 提交者: Liu Jiaming

Canbus: added error handler

上级 24b3d27f
......@@ -117,7 +117,11 @@ ErrorCode VehicleController::Update(const ControlCommand &control_command) {
break;
}
}
SetDrivingMode(mode);
auto error_code = SetDrivingMode(mode);
if (error_code != ErrorCode::OK) {
AERROR << "Failed to set driving mode.";
return error_code;
}
}
if (driving_mode() == Chassis::COMPLETE_AUTO_DRIVE ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册