Apollo 10.0
自动驾驶开放平台
surround_73.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2017 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16
22#pragma once
23
24#include "modules/canbus_vehicle/lincoln/proto/lincoln.pb.h"
26
31namespace apollo {
32namespace canbus {
33namespace lincoln {
34
41 ::apollo::canbus::Lincoln> {
42 public:
43 static const int32_t ID;
44
45 /*
46 * @brief parse received data
47 * @param bytes a pointer to the input bytes
48 * @param length the length of the input bytes
49 * @param chassis_detail the parsed chassis_detail
50 */
51 virtual void Parse(const std::uint8_t *bytes, int32_t length,
52 Lincoln *chassis_detail) const;
53
54 private:
55 bool is_cross_traffic_alert_left(const std::uint8_t *bytes,
56 int32_t length) const;
57
58 bool is_cross_traffic_alert_left_enabled(const std::uint8_t *bytes,
59 int32_t length) const;
60
61 bool is_blind_spot_left_alert(const std::uint8_t *bytes,
62 int32_t length) const;
63
64 bool is_blind_spot_left_alert_enabled(const std::uint8_t *bytes,
65 int32_t length) const;
66
67 bool is_cross_traffic_alert_right(const std::uint8_t *bytes,
68 int32_t length) const;
69
70 bool is_cross_traffic_alert_right_enabled(const std::uint8_t *bytes,
71 int32_t length) const;
72
73 bool is_blind_spot_right_alert(const std::uint8_t *bytes,
74 int32_t length) const;
75
76 bool is_blind_spot_right_alert_enabled(const std::uint8_t *bytes,
77 int32_t length) const;
78
79 double sonar00(const std::uint8_t *bytes, int32_t length) const;
80
81 double sonar01(const std::uint8_t *bytes, int32_t length) const;
82
83 double sonar02(const std::uint8_t *bytes, int32_t length) const;
84
85 double sonar03(const std::uint8_t *bytes, int32_t length) const;
86
87 double sonar04(const std::uint8_t *bytes, int32_t length) const;
88
89 double sonar05(const std::uint8_t *bytes, int32_t length) const;
90
91 double sonar06(const std::uint8_t *bytes, int32_t length) const;
92
93 double sonar07(const std::uint8_t *bytes, int32_t length) const;
94
95 double sonar08(const std::uint8_t *bytes, int32_t length) const;
96
97 double sonar09(const std::uint8_t *bytes, int32_t length) const;
98
99 double sonar10(const std::uint8_t *bytes, int32_t length) const;
100
101 double sonar11(const std::uint8_t *bytes, int32_t length) const;
102
103 bool sonar_enabled(const std::uint8_t *bytes, int32_t length) const;
104
105 bool sonar_fault(const std::uint8_t *bytes, int32_t length) const;
106
107 double sonar_range(const std::int32_t x) const;
108
109 double sonars(const std::uint8_t *bytes, std::uint8_t sonar_number,
110 int32_t length) const;
111};
112
113} // namespace lincoln
114} // namespace canbus
115} // namespace apollo
one of the protocol data of lincoln vehicle
Definition surround_73.h:41
virtual void Parse(const std::uint8_t *bytes, int32_t length, Lincoln *chassis_detail) const
This is the base class of protocol data.
class register implement
Definition arena_queue.h:37
The class of ProtocolData