Apollo 10.0
自动驾驶开放平台
llc_vehiclelimits_24.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 "gtest/gtest_prod.h"
20#include "modules/canbus_vehicle/transit/proto/transit.pb.h"
22
23namespace apollo {
24namespace canbus {
25namespace transit {
26
28 ::apollo::canbus::Transit> {
29 public:
30 static const int32_t ID;
32 void Parse(const std::uint8_t* bytes, int32_t length,
33 Transit* chassis) const override;
34 FRIEND_TEST(Vehiclelimits_24_test, General);
35
36 private:
37 // config detail: {'description': 'Steering angle feedback', 'offset': 0.0,
38 // 'precision': 1.0, 'len': 12, 'name': 'LLC_FBK_MaxSteeringAngle',
39 // 'is_signed_var': False, 'physical_range': '[0|4095]', 'bit': 12, 'type':
40 // 'int', 'order': 'intel', 'physical_unit': 'deg'}
41 int llc_fbk_maxsteeringangle(const std::uint8_t* bytes,
42 const int32_t length) const;
43
44 // config detail: {'description': 'Front brake pressure feedback', 'offset':
45 // 0.0, 'precision': 1.0, 'len': 12, 'name': 'LLC_FBK_MaxBrakePercent',
46 // 'is_signed_var': False, 'physical_range': '[0|113.8132]', 'bit': 0, 'type':
47 // 'double', 'order': 'intel', 'physical_unit': '%'}
48 double llc_fbk_maxbrakepercent(const std::uint8_t* bytes,
49 const int32_t length) const;
50};
51
52} // namespace transit
53} // namespace canbus
54} // namespace apollo
FRIEND_TEST(Vehiclelimits_24_test, General)
void Parse(const std::uint8_t *bytes, int32_t length, Transit *chassis) const override
This is the base class of protocol data.
class register implement
Definition arena_queue.h:37
The class of ProtocolData