Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
p x
earlywarning
Commits
ccc19945
Commit
ccc19945
authored
Jul 01, 2025
by
p x
Browse files
调通车辆辅助驾驶信息
parent
4b522d9e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/cusc/adas/v2x/dto/VehicleBodyDto.java
View file @
ccc19945
package
com.cusc.adas.v2x.dto
;
import
com.cusc.adas.v2x.vo.AutomaticDriveInfo
;
import
com.cusc.adas.v2x.vo.VehicleStatusInfo
;
public
class
VehicleBodyDto
{
private
VehicleInfoDto
vehicleInfo
;
private
VehicleStatusInfo
vehicleStatusInfo
;
private
VehicleStatusInfo
Dto
vehicleStatusInfo
;
private
AutomaticDriveInfo
automaticDriveInfo
;
//
private AutomaticDriveInfo
Dto
automaticDriveInfo;
public
VehicleInfoDto
getVehicleInfo
()
{
return
vehicleInfo
;
}
public
VehicleStatusInfoDto
getVehicleStatusInfo
()
{
return
vehicleStatusInfo
;
}
}
src/main/java/com/cusc/adas/v2x/dto/VehicleStatusInfoDto.java
View file @
ccc19945
...
...
@@ -46,7 +46,7 @@ public class VehicleStatusInfoDto {
private
short
dmsFlag
;
//里程
@Order
(
11
)
private
long
mileage
;
private
double
mileage
;
//sweeping状态
@Order
(
12
)
private
short
sweepingFlag
;
...
...
@@ -56,31 +56,31 @@ public class VehicleStatusInfoDto {
// 车辆运行状态数据 2-车辆辅助驾驶系统信息及其他状态信息数据结构(续)
//油量 对应车辆油量表读数,单位:0.1 L,
@Order
(
14
)
private
in
t
fuelGauge
;
private
floa
t
fuelGauge
;
//电池剩余电量 0.01%,
@Order
(
15
)
private
in
t
soc
;
private
floa
t
soc
;
//电池温度 [0..200],单位:摄氏度(℃),
//数据偏移量 100,表示-100℃~100℃ ,0xFF 表示缺省
@Order
(
16
)
private
short
temperature
;
//预计续航里程 单位:千米(km),
@Order
(
17
)
private
long
endurance
;
private
double
endurance
;
//车辆故障状态
@Order
(
18
)
private
int
vehFault
;
//电机转速
@Order
(
19
)
private
int
motorspeed
;
//电机转矩
@Order
(
20
)
private
long
motortorque
;
private
double
motortorque
;
//运行模式 车辆运行模式,1:纯电驱动模式;2:混合驱动 模式;3:行车充电模式;4:能量回收模式;5:停车充电模式;6: 能量混合回充模式;
@Order
(
21
)
private
short
vehMode
;
...
...
@@ -124,5 +124,12 @@ public class VehicleStatusInfoDto {
//自定义字段内容
@Order
(
33
)
private
String
userdefinedData
;
public
float
getSoc
()
{
return
soc
;
}
public
int
getLights
()
{
return
lights
;
}
}
src/main/java/com/cusc/adas/v2x/events/VehicleBodyEvent.kt
View file @
ccc19945
package
com.cusc.adas.v2x.events
import
com.cusc.adas.v2x.dto.VehicleInfoDto
import
com.cusc.adas.v2x.dto.VehicleStatusInfoDto
/**车辆运行状态**/
class
VehicleBodyEvent
{
var
vehicleInfo
:
VehicleInfoDto
?
=
null
var
vehicleStatusInfo
:
VehicleStatusInfoDto
?
=
null
}
\ No newline at end of file
src/main/java/com/cusc/adas/v2x/utils/Parse.java
View file @
ccc19945
This diff is collapsed.
Click to expand it.
src/main/java/com/cusc/adas/v2x/vo/VehicleStatusInfo.java
View file @
ccc19945
...
...
@@ -11,7 +11,7 @@ import com.cusc.adas.v2x.utils.RefNumFlag;
/**
* 车辆辅助驾驶信息及状态信息
* @author huangml
*
*
车辆运行状态数据 2-车辆辅助驾驶系统信息及其他状态信息数据结构(续)
*/
public
class
VehicleStatusInfo
{
@Order
(
1
)
...
...
@@ -48,8 +48,9 @@ public class VehicleStatusInfo {
//DMS 状态
@Order
(
10
)
private
short
dmsFlag
;
//里程
//里程
单位:0.1km,
@Order
(
11
)
@OffsetDef
(
value
=
0.1
)
private
long
mileage
;
//sweeping状态
@Order
(
12
)
...
...
@@ -57,14 +58,13 @@ public class VehicleStatusInfo {
//watering状态
@Order
(
13
)
private
short
wateringFlag
;
// 车辆运行状态数据 2-车辆辅助驾驶系统信息及其他状态信息数据结构(续)
//油量 对应车辆油量表读数,单位:0.1 L,
@Order
(
14
)
@OffsetDef
(
value
=
0.1
)
private
int
fuelGauge
;
//电池剩余电量 0.01%,
@Order
(
15
)
@OffsetDef
(
value
=
1
f
)
@OffsetDef
(
value
=
0.0
1
)
private
int
soc
;
//电池温度 [0..200],单位:摄氏度(℃),
//数据偏移量 100,表示-100℃~100℃ ,0xFF 表示缺省
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment