Apollo  6.0
Open source self driving car software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
llc_vehiclelimits_24.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 "gtest/gtest_prod.h"
20 #include "modules/canbus/proto/chassis_detail.pb.h"
22 
23 namespace apollo {
24 namespace canbus {
25 namespace transit {
26 
28  ::apollo::canbus::ChassisDetail> {
29  public:
30  static const int32_t ID;
32  void Parse(const std::uint8_t* bytes, int32_t length,
33  ChassisDetail* 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
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
FRIEND_TEST(Vehiclelimits_24_test, General)
Definition: llc_vehiclelimits_24.h:27
static const int32_t ID
Definition: llc_vehiclelimits_24.h:30
The class of ProtocolData.
void Parse(const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis) const override