- public void update_ui(AltosState state, AltosGreatCircle from_receiver, Location receiver) {
+ public String tab_name() { return "landed"; }
+
+ public void show(AltosState state, AltosGreatCircle from_receiver, Location receiver) {
if (from_receiver != null) {
mBearingView.setText(String.format("%3.0f°", from_receiver.bearing));
mDistanceView.setText(String.format("%6.0f m", from_receiver.distance));
if (from_receiver != null) {
mBearingView.setText(String.format("%3.0f°", from_receiver.bearing));
mDistanceView.setText(String.format("%6.0f m", from_receiver.distance));
mReceiverLatitudeView.setText(AltosDroid.pos(receiver.getLatitude(), "N", "S"));
mReceiverLongitudeView.setText(AltosDroid.pos(receiver.getLongitude(), "W", "E"));
}
mReceiverLatitudeView.setText(AltosDroid.pos(receiver.getLatitude(), "N", "S"));
mReceiverLongitudeView.setText(AltosDroid.pos(receiver.getLongitude(), "W", "E"));
}
if (state != null) {
mMaxHeightView.setText(String.format("%6.0f m", state.max_height()));
mMaxAccelView.setText(String.format("%6.0f m/s²", state.max_acceleration()));
mMaxSpeedView.setText(String.format("%6.0f m/s", state.max_speed()));
}
}
if (state != null) {
mMaxHeightView.setText(String.format("%6.0f m", state.max_height()));
mMaxAccelView.setText(String.format("%6.0f m/s²", state.max_acceleration()));
mMaxSpeedView.setText(String.format("%6.0f m/s", state.max_speed()));
}
}