X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosdroid%2Fsrc%2Forg%2Faltusmetrum%2FAltosDroid%2FAltosDroid.java;h=b44b8ce9d28c6e1a03ff4e58eb46c9f62dd3d3c7;hb=2137a112b4217d84041f749b8aa5eb8f4d330ba0;hp=9ecce681ac98b2bba4517648750ec6df9e8e2169;hpb=8ffa4f9a474026f5a6523b26919a78565e0ed74c;p=fw%2Faltos diff --git a/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java b/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java index 9ecce681..b44b8ce9 100644 --- a/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java +++ b/altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java @@ -69,8 +69,8 @@ public class AltosDroid extends Activity { private TextView mSpeedView; private TextView mAccelView; private TextView mRangeView; - private TextView mAltitudeView; - private TextView mAzimuthView; + private TextView mHeightView; + private TextView mElevationView; private TextView mBearingView; private TextView mLatitudeView; private TextView mLongitudeView; @@ -182,8 +182,8 @@ public class AltosDroid extends Activity { mSpeedView.setText(String.format("%6.0f m/s", speed)); mAccelView.setText(String.format("%6.0f m/s²", state.acceleration)); mRangeView.setText(String.format("%6.0f m", state.range)); - mAltitudeView.setText(String.format("%6.0f m", state.height)); - mAzimuthView.setText(String.format("%3.0f°", state.elevation)); + mHeightView.setText(String.format("%6.0f m", state.height)); + mElevationView.setText(String.format("%3.0f°", state.elevation)); if (state.from_pad != null) mBearingView.setText(String.format("%3.0f°", state.from_pad.bearing)); mLatitudeView.setText(pos(state.gps.lat, "N", "S")); @@ -198,7 +198,7 @@ public class AltosDroid extends Activity { } int deg = (int) Math.floor(p); double min = (p - Math.floor(p)) * 60.0; - return String.format("%s %d° %9.6f", h, deg, min); + return String.format("%d° %9.6f\" %s", deg, min, h); } @Override @@ -228,8 +228,8 @@ public class AltosDroid extends Activity { mSpeedView = (TextView) findViewById(R.id.speed_value); mAccelView = (TextView) findViewById(R.id.accel_value); mRangeView = (TextView) findViewById(R.id.range_value); - mAltitudeView = (TextView) findViewById(R.id.altitude_value); - mAzimuthView = (TextView) findViewById(R.id.azimuth_value); + mHeightView = (TextView) findViewById(R.id.height_value); + mElevationView = (TextView) findViewById(R.id.elevation_value); mBearingView = (TextView) findViewById(R.id.bearing_value); mLatitudeView = (TextView) findViewById(R.id.latitude_value); mLongitudeView = (TextView) findViewById(R.id.longitude_value);