Open leizi111 opened 3 months ago
do you mean Vehicle Security Operations Center
? Dreamview already has an event monitor to display multi-level messages about the module, like warning, error, delay so on.
we're adding more functional security monitor, and maybe you can explain your requirements in detail, or give a design document
I mean soc(State-of-Charge) value of vehicle battery, it can be read on the chassis via canbus, I want to display it on dreamview plus page, is there an interface I can use? Looking forward to your reply.
do you mean
Vehicle Security Operations Center
? Dreamview already has an event monitor to display multi-level messages about the module, like warning, error, delay so on.we're adding more functional security monitor, and maybe you can explain your requirements in detail, or give a design document
Vehicle related information is in autoDrivingCar
, which is a Object
message, the proto type you can find in https://github.com/ApolloAuto/apollo/blob/0026d7ee9ebdb772818c741e6b9220f9412a94ff/modules/common_msgs/dreamview_msgs/simulation_world.proto#L77
so you can add below method to get battery_percentage
,
<SignalAndGear
color={dashBoardState?.trafficSignal?.currentSignal}
gearPosition={dashBoardState?.autoDrivingCar?.gearLocation}
batteryPercentage={dashBoardState?.autoDrivingCar?.batteryPercentage} #-------> add
/>
<div className={classes['dash-board-signal-gear']}>
<Signal signal={props?.color as SignalEnum} />
<Gear gearPosition={props?.gearPosition} />
<Battery percentage={props?.batteryPercentage} /> #-------> add
</div>
Thanks for your reply! I will try it in my project.
I want to display the vehicle soc value on the dreamview plus page, is there an interface in dreamview plus that can display the vehicle SOC on the page?