Update TS SoC & min cell voltage on AMS Status msg
This commit is contained in:
		@ -8,3 +8,8 @@ DriverViewPresenter::DriverViewPresenter(DriverViewView &v) : view(v) {}
 | 
			
		||||
void DriverViewPresenter::activate() {}
 | 
			
		||||
 | 
			
		||||
void DriverViewPresenter::deactivate() {}
 | 
			
		||||
 | 
			
		||||
void DriverViewPresenter::amsUpdated() {
 | 
			
		||||
  view.setTSSoC(vehicle_state.soc);
 | 
			
		||||
  view.setMinCellVolt(vehicle_state.min_cell_volt);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -24,3 +24,13 @@ void DriverViewView::setTireTemps(const TireTemps &temps) {
 | 
			
		||||
  tireTempRL.setTemp(temps.rl);
 | 
			
		||||
  tireTempRR.setTemp(temps.rr);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void DriverViewView::setTSSoC(uint8_t soc) {
 | 
			
		||||
  tsSoC.setValue(soc);
 | 
			
		||||
  tsSoC.invalidate();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void DriverViewView::setMinCellVolt(float v) {
 | 
			
		||||
  field1.setValue(v);
 | 
			
		||||
  field1.invalidate();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user