Apollo  6.0
Open source self driving car software
aeb_rearwheelspeed_354.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2020 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 neolix_edu {
25 
27  ::apollo::canbus::ChassisDetail> {
28  public:
29  static const int32_t ID;
31  void Parse(const std::uint8_t* bytes, int32_t length,
32  ChassisDetail* chassis) const override;
33 
34  private:
35  // config detail: {'description': '0x0:Invalid;0x1:Valid', 'offset': 0.0,
36  // 'precision': 1.0, 'len': 1, 'name': 'WheelSpeed_RL_Valid', 'is_signed_var':
37  // False, 'physical_range': '[0.0|1.0]', 'bit': 23, 'type': 'bool', 'order':
38  // 'motorola', 'physical_unit': 'bit'}
39  bool wheelspeed_rl_valid(const std::uint8_t* bytes,
40  const int32_t length) const;
41 
42  // config detail: {'name': 'WheelSpeed_RL', 'offset': 0.0, 'precision': 0.01,
43  // 'len': 15, 'is_signed_var': False, 'physical_range': '[0.0|327.67]', 'bit':
44  // 22, 'type': 'double', 'order': 'motorola', 'physical_unit': 'km/h'}
45  double wheelspeed_rl(const std::uint8_t* bytes, const int32_t length) const;
46 
47  // config detail: {'description': '0x0:Invalid;0x1:Valid', 'offset': 0.0,
48  // 'precision': 1.0, 'len': 1, 'name': 'WheelSpeed_RR_Valid', 'is_signed_var':
49  // False, 'physical_range': '[0.0|1.0]', 'bit': 39, 'type': 'bool', 'order':
50  // 'motorola', 'physical_unit': 'bit'}
51  bool wheelspeed_rr_valid(const std::uint8_t* bytes,
52  const int32_t length) const;
53 
54  // config detail: {'name': 'WheelSpeed_RR', 'offset': 0.0, 'precision': 0.01,
55  // 'len': 15, 'is_signed_var': False, 'physical_range': '[0.0|327.67]', 'bit':
56  // 38, 'type': 'double', 'order': 'motorola', 'physical_unit': 'km/h'}
57  double wheelspeed_rr(const std::uint8_t* bytes, const int32_t length) const;
58 
59  // config detail: {'description': '0x0:Invalid;0x1:D;0x2:N;0x3:R', 'offset':
60  // 0.0, 'precision': 1.0, 'len': 2, 'name': 'WheelSpeed_RL_Direct',
61  // 'is_signed_var': False, 'physical_range': '[0.0|3.0]', 'bit': 53, 'type':
62  // 'double', 'order': 'motorola', 'physical_unit': 'bit'}
63  double wheelspeed_rl_direct(const std::uint8_t* bytes,
64  const int32_t length) const;
65 
66  // config detail: {'description': '0x0:Invalid;0x1:D;0x2:N;0x3:R', 'offset':
67  // 0.0, 'precision': 1.0, 'len': 2, 'name': 'WheelSpeed_RR_Direct',
68  // 'is_signed_var': False, 'physical_range': '[0.0|3.0]', 'bit': 55, 'type':
69  // 'double', 'order': 'motorola', 'physical_unit': 'bit'}
70  double wheelspeed_rr_direct(const std::uint8_t* bytes,
71  const int32_t length) const;
72 
73  // config detail: {'name': 'AliveCounter_Rear', 'offset': 0.0,
74  // 'precision': 1.0, 'len': 4, 'is_signed_var': False, 'physical_range':
75  // '[0.0|15.0]', 'bit': 51, 'type': 'double', 'order': 'motorola',
76  // 'physical_unit': ''}
77  double alivecounter_rear(const std::uint8_t* bytes,
78  const int32_t length) const;
79 
80  // config detail: {'name': 'Checksum_Rear', 'offset': 0.0, 'precision': 1.0,
81  // 'len': 8, 'is_signed_var': False, 'physical_range': '[0.0|255.0]', 'bit':
82  // 63, 'type': 'double', 'order': 'motorola', 'physical_unit': ''}
83  double checksum_rear(const std::uint8_t* bytes, const int32_t length) const;
84 };
85 
86 } // namespace neolix_edu
87 } // namespace canbus
88 } // 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
Definition: aeb_rearwheelspeed_354.h:26
static const int32_t ID
Definition: aeb_rearwheelspeed_354.h:29
void Parse(const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis) const override
The class of ProtocolData.