Merge remote-tracking branch 'origin/dev_robotaxi-d-app-module_251_220125_2.5.1' into dev_robotaxi-d-app-module_251_220125_2.5.1
This commit is contained in:
@@ -417,7 +417,7 @@ public abstract class BaseOchBusTabFragment<V extends IView, P extends Presenter
|
||||
* @param newSpeed
|
||||
*/
|
||||
public void updateSpeedView(float newSpeed){
|
||||
int speed = (int) (newSpeed * 3.6F);
|
||||
int speed = (int) (Math.abs(newSpeed) * 3.6F); // 倒车时工控机反馈定位信息中speed为负值
|
||||
mouduleArc.setArcColor(Color.parseColor(speed > 60 ? "#DB3137" : "#3E77F6"));
|
||||
mouduleArc.setValues(speed);
|
||||
flSpeed.setBackgroundResource(speed > 60 ? R.drawable.bus_yi_biao_pan_bg_speeding : R.drawable.bus_yi_biao_pan_bg_nor);
|
||||
|
||||
@@ -427,7 +427,7 @@ public abstract class BaseOchTaxiTabFragment<V extends IView, P extends Presente
|
||||
}
|
||||
|
||||
public void updateSpeedView(float newSpeed){
|
||||
int speed = (int) (newSpeed * 3.6F);
|
||||
int speed = (int) (Math.abs(newSpeed) * 3.6F); // 倒车时工控机反馈定位信息中speed为负值
|
||||
mSpeedView.setText(String.valueOf(speed));
|
||||
}
|
||||
|
||||
|
||||
@@ -419,7 +419,7 @@ public abstract class BaseOchTaxiTabFragment<V extends IView, P extends Presente
|
||||
}
|
||||
|
||||
public void updateSpeedView(float newSpeed){
|
||||
int speed = (int) (newSpeed * 3.6F);
|
||||
int speed = (int) (Math.abs(newSpeed) * 3.6F); // 倒车时工控机反馈定位信息中speed为负值
|
||||
mSpeedView.setText(String.valueOf(speed));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user