Apollo 10.0
自动驾驶开放平台
lat_lon_heading_rpt_82.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/gem/proto/gem.pb.h"
21
22namespace apollo {
23namespace canbus {
24namespace gem {
25
27 ::apollo::canbus::Gem> {
28 public:
29 static const int32_t ID;
31 void Parse(const std::uint8_t* bytes, int32_t length,
32 Gem* chassis) const override;
33
34 private:
35 // config detail: {'name': 'HEADING', 'offset': 0.0, 'precision': 0.01, 'len':
36 // 16, 'is_signed_var': True, 'physical_range': '[-327.68|327.67]', 'bit': 55,
37 // 'type': 'double', 'order': 'motorola', 'physical_unit': 'deg'}
38 double heading(const std::uint8_t* bytes, const int32_t length) const;
39
40 // config detail: {'name': 'LONGITUDE_SECONDS', 'offset': 0.0,
41 // 'precision': 1.0, 'len': 8, 'is_signed_var': True, 'physical_range':
42 // '[-128|127]', 'bit': 47, 'type': 'int', 'order': 'motorola',
43 // 'physical_unit': 'sec'}
44 int longitude_seconds(const std::uint8_t* bytes, const int32_t length) const;
45
46 // config detail: {'name': 'LONGITUDE_MINUTES', 'offset': 0.0,
47 // 'precision': 1.0, 'len': 8, 'is_signed_var': True, 'physical_range':
48 // '[-128|127]', 'bit': 39, 'type': 'int', 'order': 'motorola',
49 // 'physical_unit': 'min'}
50 int longitude_minutes(const std::uint8_t* bytes, const int32_t length) const;
51
52 // config detail: {'name': 'LONGITUDE_DEGREES', 'offset': 0.0,
53 // 'precision': 1.0, 'len': 8, 'is_signed_var': True, 'physical_range':
54 // '[-128|127]', 'bit': 31, 'type': 'int', 'order': 'motorola',
55 // 'physical_unit': 'deg'}
56 int longitude_degrees(const std::uint8_t* bytes, const int32_t length) const;
57
58 // config detail: {'name': 'LATITUDE_SECONDS', 'offset': 0.0,
59 // 'precision': 1.0, 'len': 8, 'is_signed_var': True, 'physical_range':
60 // '[-128|127]', 'bit': 23, 'type': 'int', 'order': 'motorola',
61 // 'physical_unit': 'sec'}
62 int latitude_seconds(const std::uint8_t* bytes, const int32_t length) const;
63
64 // config detail: {'name': 'LATITUDE_MINUTES', 'offset': 0.0,
65 // 'precision': 1.0, 'len': 8, 'is_signed_var': True, 'physical_range':
66 // '[-128|127]', 'bit': 15, 'type': 'int', 'order': 'motorola',
67 // 'physical_unit': 'min'}
68 int latitude_minutes(const std::uint8_t* bytes, const int32_t length) const;
69
70 // config detail: {'name': 'LATITUDE_DEGREES', 'offset': 0.0,
71 // 'precision': 1.0, 'len': 8, 'is_signed_var': True, 'physical_range':
72 // '[-128|127]', 'bit': 7, 'type': 'int', 'order': 'motorola',
73 // 'physical_unit': 'deg'}
74 int latitude_degrees(const std::uint8_t* bytes, const int32_t length) const;
75};
76
77} // namespace gem
78} // namespace canbus
79} // namespace apollo
void Parse(const std::uint8_t *bytes, int32_t length, Gem *chassis) const override
This is the base class of protocol data.
class register implement
Definition arena_queue.h:37
The class of ProtocolData