Apollo  6.0
Open source self driving car software
turnsignal_command_113.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 
32 
33  uint32_t GetPeriod() const override;
34 
35  void UpdateData(uint8_t* data) override;
36 
37  void Reset() override;
38 
39  // config detail: {'description': 'Lighting control(Command)', 'enum': {0:
40  // 'TURN_SIGNAL_CMD_NONE', 1: 'TURN_SIGNAL_CMD_LEFT', 2:
41  // 'TURN_SIGNAL_CMD_RIGHT'}, 'precision': 1.0, 'len': 8, 'name':
42  // 'TURN_SIGNAL_CMD', 'is_signed_var': False, 'offset': 0.0, 'physical_range':
43  // '[0|2]', 'bit': 0, 'type': 'enum', 'order': 'intel', 'physical_unit': ''}
45  Turnsignal_command_113::Turn_signal_cmdType turn_signal_cmd);
46 
47  private:
48  // config detail: {'description': 'Lighting control(Command)', 'enum': {0:
49  // 'TURN_SIGNAL_CMD_NONE', 1: 'TURN_SIGNAL_CMD_LEFT', 2:
50  // 'TURN_SIGNAL_CMD_RIGHT'}, 'precision': 1.0, 'len': 8, 'name':
51  // 'TURN_SIGNAL_CMD', 'is_signed_var': False, 'offset': 0.0, 'physical_range':
52  // '[0|2]', 'bit': 0, 'type': 'enum', 'order': 'intel', 'physical_unit': ''}
53  void set_p_turn_signal_cmd(
54  uint8_t* data,
55  Turnsignal_command_113::Turn_signal_cmdType turn_signal_cmd);
56 
57  private:
58  Turnsignal_command_113::Turn_signal_cmdType turn_signal_cmd_;
59 };
60 
61 } // namespace ch
62 } // namespace canbus
63 } // namespace apollo
Definition: turnsignal_command_113.h:26
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
Turnsignalcommand113 * set_turn_signal_cmd(Turnsignal_command_113::Turn_signal_cmdType turn_signal_cmd)
void UpdateData(uint8_t *data) override
uint32_t GetPeriod() const override
The class of ProtocolData.
static const int32_t ID
Definition: turnsignal_command_113.h:29