Apollo  6.0
Open source self driving car software
ecu_status_3_517.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2019 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 
17 #pragma once
18 
19 #include "modules/canbus/proto/chassis_detail.pb.h"
21 
22 namespace apollo {
23 namespace canbus {
24 namespace ch {
25 
27  ::apollo::canbus::ChassisDetail> {
28  public:
29  static const int32_t ID;
30  Ecustatus3517();
31  void Parse(const std::uint8_t* bytes, int32_t length,
32  ChassisDetail* chassis) const override;
33 
34  private:
35  // config detail: {'description': 'Ultrasonic detection distance 1 (Ultrasound
36  // status)', 'offset': 0.0, 'precision': 1.0, 'len': 8, 'name':
37  // 'ULTRASOUND_DIST_1', 'is_signed_var': False, 'physical_range': '[0|0]',
38  // 'bit': 0, 'type': 'int', 'order': 'intel', 'physical_unit': 'cm'}
39  int ultrasound_dist_1(const std::uint8_t* bytes, const int32_t length) const;
40 
41  // config detail: {'description': 'Ultrasonic detection distance 2 (Ultrasound
42  // status)', 'offset': 0.0, 'precision': 1.0, 'len': 8, 'name':
43  // 'ULTRASOUND_DIST_2', 'is_signed_var': False, 'physical_range': '[0|0]',
44  // 'bit': 8, 'type': 'int', 'order': 'intel', 'physical_unit': 'cm'}
45  int ultrasound_dist_2(const std::uint8_t* bytes, const int32_t length) const;
46 
47  // config detail: {'description': 'Ultrasonic detection distance 3 (Ultrasound
48  // status)', 'offset': 0.0, 'precision': 1.0, 'len': 8, 'name':
49  // 'ULTRASOUND_DIST_3', 'is_signed_var': False, 'physical_range': '[0|0]',
50  // 'bit': 16, 'type': 'int', 'order': 'intel', 'physical_unit': 'cm'}
51  int ultrasound_dist_3(const std::uint8_t* bytes, const int32_t length) const;
52 
53  // config detail: {'description': 'Ultrasonic detection distance 4 (Ultrasound
54  // status)', 'offset': 0.0, 'precision': 1.0, 'len': 8, 'name':
55  // 'ULTRASOUND_DIST_4', 'is_signed_var': False, 'physical_range': '[0|0]',
56  // 'bit': 24, 'type': 'int', 'order': 'intel', 'physical_unit': 'cm'}
57  int ultrasound_dist_4(const std::uint8_t* bytes, const int32_t length) const;
58 
59  // config detail: {'description': 'Ultrasonic detection distance 5 (Ultrasound
60  // status)', 'offset': 0.0, 'precision': 1.0, 'len': 8, 'name':
61  // 'ULTRASOUND_DIST_5', 'is_signed_var': False, 'physical_range': '[0|0]',
62  // 'bit': 32, 'type': 'int', 'order': 'intel', 'physical_unit': 'cm'}
63  int ultrasound_dist_5(const std::uint8_t* bytes, const int32_t length) const;
64 
65  // config detail: {'description': 'Ultrasonic detection distance 6 (Ultrasound
66  // status)', 'offset': 0.0, 'precision': 1.0, 'len': 8, 'name':
67  // 'ULTRASOUND_DIST_6', 'is_signed_var': False, 'physical_range': '[0|0]',
68  // 'bit': 40, 'type': 'int', 'order': 'intel', 'physical_unit': 'cm'}
69  int ultrasound_dist_6(const std::uint8_t* bytes, const int32_t length) const;
70 
71  // config detail: {'description': 'Ultrasonic detection distance 7 (Ultrasound
72  // status)', 'offset': 0.0, 'precision': 1.0, 'len': 8, 'name':
73  // 'ULTRASOUND_DIST_7', 'is_signed_var': False, 'physical_range': '[0|0]',
74  // 'bit': 48, 'type': 'int', 'order': 'intel', 'physical_unit': 'cm'}
75  int ultrasound_dist_7(const std::uint8_t* bytes, const int32_t length) const;
76 
77  // config detail: {'description': 'Ultrasonic detection distance 8 (Ultrasound
78  // status)', 'offset': 0.0, 'precision': 1.0, 'len': 8, 'name':
79  // 'ULTRASOUND_DIST_8', 'is_signed_var': False, 'physical_range': '[0|0]',
80  // 'bit': 56, 'type': 'int', 'order': 'intel', 'physical_unit': 'cm'}
81  int ultrasound_dist_8(const std::uint8_t* bytes, const int32_t length) const;
82 };
83 
84 } // namespace ch
85 } // namespace canbus
86 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
This is the base class of protocol data.
Definition: protocol_data.h:44
void Parse(const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis) const override
The class of ProtocolData.
static const int32_t ID
Definition: ecu_status_3_517.h:29
Definition: ecu_status_3_517.h:26