Skip to content

Commit 0172b7e

Browse files
xssfoxTheSkorm
authored andcommitted
fix issue with imperial selection
1 parent ab532e5 commit 0172b7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/sondehub.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,9 +2511,9 @@ function redrawPrediction(vcallsign) {
25112511
} else {
25122512
if (offline.get('opt_imperial')){
25132513
vehicle.prediction_burst.pred_type = "<b>Prediction Type:</b> Standard \n" +
2514-
"<b>Ascent Rate:</b> " + vehicle.prediction_burst.ascent_rate.toFixed(1) + " ft/s \n" +
2515-
"<b>Burst Altitude:</b> " + vehicle.prediction_burst.burst_altitude.toFixed(0) + " feet\n" +
2516-
"<b>Descent Rate:</b> " + vehicle.prediction_burst.descent_rate.toFixed(1) + " ft/s \n";
2514+
"<b>Ascent Rate:</b> " + vehicle.prediction.ascent_rate.toFixed(1) + " ft/s \n" +
2515+
"<b>Burst Altitude:</b> " + vehicle.prediction.burst_altitude.toFixed(0) + " feet\n" +
2516+
"<b>Descent Rate:</b> " + vehicle.prediction.descent_rate.toFixed(1) + " ft/s \n";
25172517
} else {
25182518
vehicle.prediction_burst.pred_type = "<b>Prediction Type:</b> Standard \n" +
25192519
"<b>Ascent Rate:</b> " + (vehicle.prediction.ascent_rate * 3.2808399).toFixed(1) + " m/s \n" +

0 commit comments

Comments
 (0)