Apollo 10.0
自动驾驶开放平台
accel_aux_rpt_300.h
浏览该文件的文档.
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_vehicle/lexus/proto/lexus.pb.h"
21
22namespace apollo {
23namespace canbus {
24namespace lexus {
25
27 ::apollo::canbus::Lexus> {
28 public:
29 static const int32_t ID;
31 void Parse(const std::uint8_t* bytes, int32_t length,
32 Lexus* chassis) const override;
33
34 private:
35 // config detail: {'name': 'USER_INTERACTION_IS_VALID', 'offset': 0.0,
36 // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
37 // '[0|1]', 'bit': 42, 'type': 'bool', 'order': 'motorola', 'physical_unit':
38 // ''}
39 bool user_interaction_is_valid(const std::uint8_t* bytes,
40 const int32_t length) const;
41
42 // config detail: {'name': 'USER_INTERACTION', 'offset': 0.0,
43 // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
44 // '[0|1]', 'bit': 32, 'type': 'bool', 'order': 'motorola', 'physical_unit':
45 // ''}
46 bool user_interaction(const std::uint8_t* bytes, const int32_t length) const;
47
48 // config detail: {'name': 'RAW_PEDAL_FORCE_IS_VALID', 'offset': 0.0,
49 // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
50 // '[0|1]', 'bit': 41, 'type': 'bool', 'order': 'motorola', 'physical_unit':
51 // ''}
52 bool raw_pedal_force_is_valid(const std::uint8_t* bytes,
53 const int32_t length) const;
54
55 // config detail: {'name': 'RAW_PEDAL_FORCE', 'offset': 0.0, 'precision':
56 // 0.001, 'len': 16, 'is_signed_var': True, 'physical_range':
57 // '[-32.768|32.767]', 'bit': 23, 'type': 'double', 'order': 'motorola',
58 // 'physical_unit': ''}
59 double raw_pedal_force(const std::uint8_t* bytes, const int32_t length) const;
60
61 // config detail: {'name': 'RAW_PEDAL_POS_IS_VALID', 'offset': 0.0,
62 // 'precision': 1.0, 'len': 1, 'is_signed_var': False, 'physical_range':
63 // '[0|1]', 'bit': 40, 'type': 'bool', 'order': 'motorola', 'physical_unit':
64 // ''}
65 bool raw_pedal_pos_is_valid(const std::uint8_t* bytes,
66 const int32_t length) const;
67
68 // config detail: {'name': 'RAW_PEDAL_POS', 'offset': 0.0, 'precision': 0.001,
69 // 'len': 16, 'is_signed_var': True, 'physical_range': '[-32.768|32.767]',
70 // 'bit': 7, 'type': 'double', 'order': 'motorola', 'physical_unit': ''}
71 double raw_pedal_pos(const std::uint8_t* bytes, const int32_t length) const;
72};
73
74} // namespace lexus
75} // namespace canbus
76} // namespace apollo
void Parse(const std::uint8_t *bytes, int32_t length, Lexus *chassis) const override
This is the base class of protocol data.
class register implement
Definition arena_queue.h:37
The class of ProtocolData