Apollo  6.0
Open source self driving car software
vcu_vehicle_info_response_502.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 
28  ::apollo::canbus::ChassisDetail> {
29  public:
30  static const int32_t ID;
32  void Parse(const std::uint8_t* bytes, int32_t length,
33  ChassisDetail* chassis) const override;
34 
35  private:
36  // config detail: {'name': 'Vehicle_Softwareversion_Indicati', 'offset': 0.0,
37  // 'precision': 1.0, 'len': 24, 'is_signed_var': False, 'physical_range':
38  // '[0|16777215]', 'bit': 7, 'type': 'int', 'order': 'motorola',
39  // 'physical_unit': ''}
40  int vehicle_softwareversion_indicati(const std::uint8_t* bytes,
41  const int32_t length) const;
42 
43  // config detail: {'name': 'Project', 'offset': 0.0, 'precision': 1.0, 'len':
44  // 4, 'is_signed_var': False, 'physical_range': '[0|15]', 'bit': 27, 'type':
45  // 'int', 'order': 'motorola', 'physical_unit': ''}
46  int project(const std::uint8_t* bytes, const int32_t length) const;
47 
48  // config detail: {'name': 'Manufacturer', 'offset': 0.0, 'precision': 1.0,
49  // 'len': 4, 'is_signed_var': False, 'physical_range': '[0|15]', 'bit': 31,
50  // 'type': 'int', 'order': 'motorola', 'physical_unit': ''}
51  int manufacturer(const std::uint8_t* bytes, const int32_t length) const;
52 
53  // config detail: {'name': 'Year', 'offset': 0.0, 'precision': 1.0, 'len': 8,
54  // 'is_signed_var': False, 'physical_range': '[0|255]', 'bit': 39, 'type':
55  // 'int', 'order': 'motorola', 'physical_unit': ''}
56  int year(const std::uint8_t* bytes, const int32_t length) const;
57 
58  // config detail: {'name': 'Month', 'offset': 0.0, 'precision': 1.0, 'len': 4,
59  // 'is_signed_var': False, 'physical_range': '[1|12]', 'bit': 47, 'type':
60  // 'int', 'order': 'motorola', 'physical_unit': ''}
61  int month(const std::uint8_t* bytes, const int32_t length) const;
62 
63  // config detail: {'name': 'Day', 'offset': 0.0, 'precision': 1.0, 'len': 5,
64  // 'is_signed_var': False, 'physical_range': '[1|31]', 'bit': 43, 'type':
65  // 'int', 'order': 'motorola', 'physical_unit': ''}
66  int day(const std::uint8_t* bytes, const int32_t length) const;
67 
68  // config detail: {'name': 'Vehicle_Serial_Number', 'offset': 0.0,
69  // 'precision': 1.0, 'len': 15, 'is_signed_var': False, 'physical_range':
70  // '[0|32767]', 'bit': 54, 'type': 'int', 'order': 'motorola',
71  // 'physical_unit': ''}
72  int vehicle_serial_number(const std::uint8_t* bytes,
73  const int32_t length) const;
74 };
75 
76 } // namespace neolix_edu
77 } // namespace canbus
78 } // 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
Definition: vcu_vehicle_info_response_502.h:26
The class of ProtocolData.
static const int32_t ID
Definition: vcu_vehicle_info_response_502.h:30