Apollo  6.0
Open source self driving car software
wiper_aux_rpt_334.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 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 lexus {
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: {'name': 'SPRAY_EMPTY_IS_VALID', 'offset': 0.0,
36  // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
37  // '[0|1]', 'bit': 13, 'type': 'bool', 'order': 'motorola', 'physical_unit':
38  // ''}
39  bool spray_empty_is_valid(const std::uint8_t* bytes,
40  const int32_t length) const;
41 
42  // config detail: {'name': 'SPRAY_EMPTY', 'offset': 0.0, 'precision': 1.0,
43  // 'len': 1, 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 5,
44  // 'type': 'bool', 'order': 'motorola', 'physical_unit': ''}
45  bool spray_empty(const std::uint8_t* bytes, const int32_t length) const;
46 
47  // config detail: {'name': 'SPRAY_NEAR_EMPTY_IS_VALID', 'offset': 0.0,
48  // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
49  // '[0|1]', 'bit': 12, 'type': 'bool', 'order': 'motorola', 'physical_unit':
50  // ''}
51  bool spray_near_empty_is_valid(const std::uint8_t* bytes,
52  const int32_t length) const;
53 
54  // config detail: {'name': 'SPRAY_NEAR_EMPTY', 'offset': 0.0,
55  // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
56  // '[0|1]', 'bit': 4, 'type': 'bool', 'order': 'motorola', 'physical_unit':
57  // ''}
58  bool spray_near_empty(const std::uint8_t* bytes, const int32_t length) const;
59 
60  // config detail: {'name': 'REAR_SPRAYING_IS_VALID', 'offset': 0.0,
61  // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
62  // '[0|1]', 'bit': 11, 'type': 'bool', 'order': 'motorola', 'physical_unit':
63  // ''}
64  bool rear_spraying_is_valid(const std::uint8_t* bytes,
65  const int32_t length) const;
66 
67  // config detail: {'name': 'REAR_SPRAYING', 'offset': 0.0, 'precision': 1.0,
68  // 'len': 1, 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 3,
69  // 'type': 'bool', 'order': 'motorola', 'physical_unit': ''}
70  bool rear_spraying(const std::uint8_t* bytes, const int32_t length) const;
71 
72  // config detail: {'name': 'REAR_WIPING_IS_VALID', 'offset': 0.0,
73  // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
74  // '[0|1]', 'bit': 10, 'type': 'bool', 'order': 'motorola', 'physical_unit':
75  // ''}
76  bool rear_wiping_is_valid(const std::uint8_t* bytes,
77  const int32_t length) const;
78 
79  // config detail: {'name': 'REAR_WIPING', 'offset': 0.0, 'precision': 1.0,
80  // 'len': 1, 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 2,
81  // 'type': 'bool', 'order': 'motorola', 'physical_unit': ''}
82  bool rear_wiping(const std::uint8_t* bytes, const int32_t length) const;
83 
84  // config detail: {'name': 'FRONT_SPRAYING_IS_VALID', 'offset': 0.0,
85  // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
86  // '[0|1]', 'bit': 9, 'type': 'bool', 'order': 'motorola', 'physical_unit':
87  // ''}
88  bool front_spraying_is_valid(const std::uint8_t* bytes,
89  const int32_t length) const;
90 
91  // config detail: {'name': 'FRONT_SPRAYING', 'offset': 0.0, 'precision': 1.0,
92  // 'len': 1, 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 1,
93  // 'type': 'bool', 'order': 'motorola', 'physical_unit': ''}
94  bool front_spraying(const std::uint8_t* bytes, const int32_t length) const;
95 
96  // config detail: {'name': 'FRONT_WIPING_IS_VALID', 'offset': 0.0,
97  // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
98  // '[0|1]', 'bit': 8, 'type': 'bool', 'order': 'motorola', 'physical_unit':
99  // ''}
100  bool front_wiping_is_valid(const std::uint8_t* bytes,
101  const int32_t length) const;
102 
103  // config detail: {'name': 'FRONT_WIPING', 'offset': 0.0, 'precision': 1.0,
104  // 'len': 1, 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 0,
105  // 'type': 'bool', 'order': 'motorola', 'physical_unit': ''}
106  bool front_wiping(const std::uint8_t* bytes, const int32_t length) const;
107 };
108 
109 } // namespace lexus
110 } // namespace canbus
111 } // 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
static const int32_t ID
Definition: wiper_aux_rpt_334.h:29
The class of ProtocolData.
Definition: wiper_aux_rpt_334.h:26