Apollo  6.0
Open source self driving car software
wiper_cmd_90.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 gem {
25 
27  ::apollo::canbus::ChassisDetail> {
28  public:
29  static const int32_t ID;
30 
31  Wipercmd90();
32 
33  uint32_t GetPeriod() const override;
34 
35  void UpdateData(uint8_t* data) override;
36 
37  void Reset() override;
38 
39  // config detail: {'name': 'WIPER_CMD', 'enum': {0: 'WIPER_CMD_WIPERS_OFF', 1:
40  // 'WIPER_CMD_INTERMITTENT_1', 2: 'WIPER_CMD_INTERMITTENT_2', 3:
41  // 'WIPER_CMD_INTERMITTENT_3', 4: 'WIPER_CMD_INTERMITTENT_4', 5:
42  // 'WIPER_CMD_INTERMITTENT_5', 6: 'WIPER_CMD_LOW', 7: 'WIPER_CMD_HIGH'},
43  // 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'offset': 0.0,
44  // 'physical_range': '[0|7]', 'bit': 7, 'type': 'enum', 'order': 'motorola',
45  // 'physical_unit': ''}
46  Wipercmd90* set_wiper_cmd(Wiper_cmd_90::Wiper_cmdType wiper_cmd);
47 
48  private:
49  // config detail: {'name': 'WIPER_CMD', 'enum': {0: 'WIPER_CMD_WIPERS_OFF', 1:
50  // 'WIPER_CMD_INTERMITTENT_1', 2: 'WIPER_CMD_INTERMITTENT_2', 3:
51  // 'WIPER_CMD_INTERMITTENT_3', 4: 'WIPER_CMD_INTERMITTENT_4', 5:
52  // 'WIPER_CMD_INTERMITTENT_5', 6: 'WIPER_CMD_LOW', 7: 'WIPER_CMD_HIGH'},
53  // 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'offset': 0.0,
54  // 'physical_range': '[0|7]', 'bit': 7, 'type': 'enum', 'order': 'motorola',
55  // 'physical_unit': ''}
56  void set_p_wiper_cmd(uint8_t* data, Wiper_cmd_90::Wiper_cmdType wiper_cmd);
57 
58  private:
59  Wiper_cmd_90::Wiper_cmdType wiper_cmd_;
60 };
61 
62 } // namespace gem
63 } // namespace canbus
64 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: wiper_cmd_90.h:26
This is the base class of protocol data.
Definition: protocol_data.h:44
void UpdateData(uint8_t *data) override
static const int32_t ID
Definition: wiper_cmd_90.h:29
The class of ProtocolData.
uint32_t GetPeriod() const override
Wipercmd90 * set_wiper_cmd(Wiper_cmd_90::Wiper_cmdType wiper_cmd)