删除无用代码

This commit is contained in:
liujing
2022-06-29 15:07:00 +08:00
parent 884f1ce176
commit 2903f54f0d
2 changed files with 19 additions and 30 deletions

View File

@@ -68,13 +68,6 @@ public class TrafficDataView extends ConstraintLayout {
speedTextView = findViewById(R.id.speedTextView);
accTextView = findViewById(R.id.speedAccTextView);
}
//onVehicleState
// @Override
// public void onVehicleState(MessagePad.Header header, VehicleStateOuterClass.VehicleState vehicleState) {
// VehicleState base = new VehicleState(header, vehicleState, sdf);
// DataDistribution.getInstance().addData(base);
// }
private final IMoGoAutopilotVehicleStateListener mIMoGoAutopilotVehicleStateListener = new IMoGoAutopilotVehicleStateListener() {
/**
@@ -140,8 +133,8 @@ public class TrafficDataView extends ConstraintLayout {
@Override
public void onAutopilotAcc(float carAcc) {
Log.d(TAG, "加速度:" + carAcc);
java.text.DecimalFormat myformat=new java.text.DecimalFormat("0.00");
Log.d(TAG, "司机屏加速度:" + carAcc);
java.text.DecimalFormat myformat = new java.text.DecimalFormat("0.00");
String accStr = myformat.format(carAcc);
accTextView.setText("a: " + accStr);
}