油门刹车数据获取供bus使用

This commit is contained in:
liujing
2022-07-27 11:47:02 +08:00
parent bfe95019a4
commit 6717ca1c33
4 changed files with 43 additions and 1 deletions

View File

@@ -141,6 +141,16 @@ public class TrafficDataView extends ConstraintLayout {
String accStr = myformat.format(carAcc);
accTextView.setText("a: " + accStr);
}
@Override
public void onAutopilotBrake(float brake) {
Log.d(TAG, "刹车:" + String.valueOf(brake));
}
@Override
public void onAutopilotThrottle(float throttle) {
Log.d(TAG, "油门:" + String.valueOf(throttle));
}
};
/**