油门刹车数据获取供bus使用
This commit is contained in:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user