Apollo
10.0
自动驾驶开放平台
aeb_wheelimpulse_355.h
浏览该文件的文档.
1
/******************************************************************************
2
* Copyright 2020 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/neolix_edu/proto/neolix_edu.pb.h"
20
#include "
modules/drivers/canbus/can_comm/protocol_data.h
"
21
22
namespace
apollo
{
23
namespace
canbus {
24
namespace
neolix_edu {
25
26
class
Aebwheelimpulse355
:
public
::apollo::drivers::canbus::ProtocolData
<
27
::apollo::canbus::Neolix_edu> {
28
public
:
29
static
const
int32_t
ID
;
30
Aebwheelimpulse355
();
31
void
Parse
(
const
std::uint8_t* bytes, int32_t length,
32
Neolix_edu
* chassis)
const override
;
33
34
private
:
35
// config detail: {'description': '0x0:Invalid;0x1:Valid', 'offset': 0.0,
36
// 'precision': 1.0, 'len': 10, 'name': 'FLImpulse', 'is_signed_var': False,
37
// 'physical_range': '[0.0|1023.0]', 'bit': 7, 'type': 'double', 'order':
38
// 'motorola', 'physical_unit': 'bit'}
39
double
flimpulse(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
40
41
// config detail: {'description': '0x0:Invalid;0x1:Valid', 'offset': 0.0,
42
// 'precision': 1.0, 'len': 1, 'name': 'FLImpulseValid', 'is_signed_var':
43
// False, 'physical_range': '[0.0|1.0]', 'bit': 13, 'type': 'bool', 'order':
44
// 'motorola', 'physical_unit': 'bit'}
45
bool
flimpulsevalid(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
46
47
// config detail: {'name': 'FRImpulse', 'offset': 0.0, 'precision': 1.0,
48
// 'len': 10, 'is_signed_var': False, 'physical_range': '[0.0|1023.0]', 'bit':
49
// 12, 'type': 'double', 'order': 'motorola', 'physical_unit': 'km/h'}
50
double
frimpulse(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
51
52
// config detail: {'name': 'FRImpulseValid', 'offset': 0.0, 'precision': 1.0,
53
// 'len': 1, 'is_signed_var': False, 'physical_range': '[0.0|1.0]', 'bit': 18,
54
// 'type': 'bool', 'order': 'motorola', 'physical_unit': 'km/h'}
55
bool
frimpulsevalid(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
56
57
// config detail: {'description': '0x0:Invalid;0x1:Valid', 'offset': 0.0,
58
// 'precision': 1.0, 'len': 10, 'name': 'RLImpulse', 'is_signed_var': False,
59
// 'physical_range': '[0.0|1023.0]', 'bit': 17, 'type': 'double', 'order':
60
// 'motorola', 'physical_unit': 'bit'}
61
double
rlimpulse(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
62
63
// config detail: {'description': '0x0:Invalid;0x1:Valid', 'offset': 0.0,
64
// 'precision': 1.0, 'len': 1, 'name': 'RLImpulseValid', 'is_signed_var':
65
// False, 'physical_range': '[0.0|1.0]', 'bit': 39, 'type': 'bool', 'order':
66
// 'motorola', 'physical_unit': 'bit'}
67
bool
rlimpulsevalid(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
68
69
// config detail: {'name': 'RRImpulse', 'offset': 0.0, 'precision': 1.0,
70
// 'len': 10, 'is_signed_var': False, 'physical_range': '[0.0|1023.0]', 'bit':
71
// 38, 'type': 'double', 'order': 'motorola', 'physical_unit': 'km/h'}
72
double
rrimpulse(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
73
74
// config detail: {'name': 'RRImpulseValid', 'offset': 0.0, 'precision': 1.0,
75
// 'len': 1, 'is_signed_var': False, 'physical_range': '[0.0|1.0]', 'bit': 44,
76
// 'type': 'bool', 'order': 'motorola', 'physical_unit': 'km/h'}
77
bool
rrimpulsevalid(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
78
79
// config detail: {'name': 'AliveCounter', 'offset': 0.0, 'precision': 1.0,
80
// 'len': 4, 'is_signed_var': False, 'physical_range': '[0.0|15.0]', 'bit':
81
// 51, 'type': 'double', 'order': 'motorola', 'physical_unit': ''}
82
double
alivecounter(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
83
84
// config detail: {'name': 'Checksum', 'offset': 0.0, 'precision': 1.0, 'len':
85
// 8, 'is_signed_var': False, 'physical_range': '[0.0|255.0]', 'bit': 63,
86
// 'type': 'double', 'order': 'motorola', 'physical_unit': ''}
87
double
checksum(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
88
};
89
90
}
// namespace neolix_edu
91
}
// namespace canbus
92
}
// namespace apollo
apollo::canbus::neolix_edu::Aebwheelimpulse355
Definition
aeb_wheelimpulse_355.h:27
apollo::canbus::neolix_edu::Aebwheelimpulse355::Parse
void Parse(const std::uint8_t *bytes, int32_t length, Neolix_edu *chassis) const override
Definition
aeb_wheelimpulse_355.cc:33
apollo::canbus::neolix_edu::Aebwheelimpulse355::ID
static const int32_t ID
Definition
aeb_wheelimpulse_355.h:29
apollo::canbus::neolix_edu::Aebwheelimpulse355::Aebwheelimpulse355
Aebwheelimpulse355()
Definition
aeb_wheelimpulse_355.cc:30
apollo::drivers::canbus::ProtocolData
This is the base class of protocol data.
Definition
protocol_data.h:44
apollo
class register implement
Definition
arena_queue.h:37
protocol_data.h
The class of ProtocolData
apollo::canbus::Neolix_edu
Definition
neolix_edu.proto:512
modules
canbus_vehicle
neolix_edu
protocol
aeb_wheelimpulse_355.h