Apollo
10.0
自动驾驶开放平台
vcu_brake_report_47.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
21
#include "
modules/drivers/canbus/can_comm/protocol_data.h
"
22
23
namespace
apollo
{
24
namespace
canbus {
25
namespace
neolix_edu {
26
27
class
Vcubrakereport47
:
public
::apollo::drivers::canbus::ProtocolData
<
28
::apollo::canbus::Neolix_edu> {
29
public
:
30
static
const
int32_t
ID
;
31
Vcubrakereport47
();
32
void
Parse
(
const
std::uint8_t* bytes, int32_t length,
33
Neolix_edu
* chassis)
const override
;
34
35
private
:
36
// config detail: {'description': '0x0:disable;0x1:enable', 'offset': 0.0,
37
// 'precision': 1.0, 'len': 1, 'name': 'Brake_Enable_Resp', 'is_signed_var':
38
// False, 'physical_range': '[0|0]', 'bit': 0, 'type': 'bool', 'order':
39
// 'motorola', 'physical_unit': ''}
40
bool
brake_enable_resp(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
41
42
// config detail: {'description': '0x0:Standby;0x1:auto drive;0x2:net
43
// drive;0x3:remote control;0x4:emergency brake;0x5~0x7:Reserved', 'enum': {0:
44
// 'CONTROL_MODE_RESP_STANDBY', 1: 'CONTROL_MODE_RESP_AUTO_DRIVE', 2:
45
// 'CONTROL_MODE_RESP_NET_DRIVE', 3: 'CONTROL_MODE_RESP_REMOTE_CONTROL', 4:
46
// 'CONTROL_MODE_RESP_EMERGENCY_BRAKE'}, 'precision': 1.0, 'len': 3, 'name':
47
// 'Control_Mode_Resp', 'is_signed_var': False, 'offset': 0.0,
48
// 'physical_range': '[0|7]', 'bit': 6, 'type': 'enum', 'order': 'motorola',
49
// 'physical_unit': 'bit'}
50
Vcu_brake_report_47::Control_mode_respType
control_mode_resp(
51
const
std::uint8_t* bytes,
const
int32_t length)
const
;
52
53
// config detail: {'description': '0x0:disable;0x1:enable', 'offset': 0.0,
54
// 'precision': 1.0, 'len': 1, 'name': 'VCU_Real_Brake_Valid',
55
// 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 7, 'type':
56
// 'bool', 'order': 'motorola', 'physical_unit': ''}
57
bool
vcu_real_brake_valid(
const
std::uint8_t* bytes,
58
const
int32_t length)
const
;
59
60
// config detail: {'name': 'VCU_Real_Brake', 'offset': 0.0, 'precision': 1.0,
61
// 'len': 8, 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 15,
62
// 'type': 'int', 'order': 'motorola', 'physical_unit': ''}
63
int
vcu_real_brake(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
64
65
// config detail: {'description':
66
// '0x0:EPB_Released;0x1:EPB_Applied;0x2:EPB_Releasing;0x3:EPB_Fault;0x4:EPB_Applying',
67
// 'offset': 0.0, 'precision': 1.0, 'len': 3, 'name':
68
// 'VCU_Real_Parking_Status', 'is_signed_var': False, 'physical_range':
69
// '[0|0]', 'bit': 18, 'type': 'int', 'order': 'motorola', 'physical_unit':
70
// ''}
71
int
vcu_real_parking_status(
const
std::uint8_t* bytes,
72
const
int32_t length)
const
;
73
74
// config detail: {'description': '0x0:disable;0x1:enable', 'offset': 0.0,
75
// 'precision': 1.0, 'len': 1, 'name': 'VCU_Real_Parking_Valid',
76
// 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 19, 'type':
77
// 'bool', 'order': 'motorola', 'physical_unit': ''}
78
bool
vcu_real_parking_valid(
const
std::uint8_t* bytes,
79
const
int32_t length)
const
;
80
81
// config detail: {'description': '0x0:off;0x1:on', 'offset': 0.0,
82
// 'precision': 1.0, 'len': 1, 'name': 'RampAuxiliaryIndication',
83
// 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 20, 'type':
84
// 'bool', 'order': 'motorola', 'physical_unit': ''}
85
bool
rampauxiliaryindication(
const
std::uint8_t* bytes,
86
const
int32_t length)
const
;
87
88
// config detail: {'name': 'VehicleSlope', 'offset': 0.0, 'precision':
89
// 0.1758125, 'len': 8, 'is_signed_var': False, 'physical_range': '[0|45]',
90
// 'bit': 31, 'type': 'double', 'order': 'motorola', 'physical_unit':
91
// '\xc2\xb0'}
92
double
vehicleslope(
const
std::uint8_t* bytes,
const
int32_t length)
const
;
93
94
// config detail: {'name': 'VCU_BrakeRept_AliveCounter', 'offset': 0.0,
95
// 'precision': 1.0, 'len': 4, 'is_signed_var': False, 'physical_range':
96
// '[0|0]', 'bit': 51, 'type': 'int', 'order': 'motorola', 'physical_unit':
97
// ''}
98
int
vcu_brakerept_alivecounter(
const
std::uint8_t* bytes,
99
const
int32_t length)
const
;
100
101
// config detail: {'name': 'VCU_BrakeRept_CheckSum', 'offset': 0.0,
102
// 'precision': 1.0, 'len': 8, 'is_signed_var': False, 'physical_range':
103
// '[0|0]', 'bit': 63, 'type': 'int', 'order': 'motorola', 'physical_unit':
104
// ''}
105
int
vcu_brakerept_checksum(
const
std::uint8_t* bytes,
106
const
int32_t length)
const
;
107
108
// config detail: {'bit': 32, 'description': 'the vcu brake was caused
109
// reason', 'enum': {0: 'VCU_EHB_NORMAL_BRAKE', 1:
110
// 'VCU_EHB_BACKUP_REMOTE_BRAKE', 2: 'VCU_EHB_EMERGENCY_BUTTON_BRAKE', 3:
111
// 'VCU_EHB_ULTR_BRAKE', 4: 'VCU_EHB_BUMPER_BRAKE'}, 'is_signed_var': False,
112
// 'len': 3, 'name': 'vcu_ehb_brake_state', 'offset': 0.0, 'order':
113
// 'motorola', 'physical_range':
114
// '[0|4]', 'physical_unit': '', 'precision': 1.0, 'type': 'enum'}
115
Vcu_brake_report_47::Vcu_ehb_brakeType
vcu_ehb_brake_state(
116
const
std::uint8_t* bytes,
const
int32_t length)
const
;
117
};
118
119
}
// namespace neolix_edu
120
}
// namespace canbus
121
}
// namespace apollo
apollo::canbus::neolix_edu::Vcubrakereport47
Definition
vcu_brake_report_47.h:28
apollo::canbus::neolix_edu::Vcubrakereport47::Vcubrakereport47
Vcubrakereport47()
Definition
vcu_brake_report_47.cc:30
apollo::canbus::neolix_edu::Vcubrakereport47::ID
static const int32_t ID
Definition
vcu_brake_report_47.h:30
apollo::canbus::neolix_edu::Vcubrakereport47::Parse
void Parse(const std::uint8_t *bytes, int32_t length, Neolix_edu *chassis) const override
Definition
vcu_brake_report_47.cc:33
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
apollo::canbus::Vcu_brake_report_47::Vcu_ehb_brakeType
Vcu_ehb_brakeType
Definition
neolix_edu.proto:144
apollo::canbus::Vcu_brake_report_47::Control_mode_respType
Control_mode_respType
Definition
neolix_edu.proto:137
modules
canbus_vehicle
neolix_edu
protocol
vcu_brake_report_47.h