X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosuilib%2FAltosInfoTable.java;fp=altosuilib%2FAltosInfoTable.java;h=72d4fb56275e423b1bb16a23c8ddf7b5f6840c3a;hp=6bfe0cf51b20d59c787fab8aebec58c83a7c7742;hb=0ab2332358eb0990cb55074001b675d390eae2ca;hpb=97cb2a808ad8853cead2d9722b7258b1b62df7a4 diff --git a/altosuilib/AltosInfoTable.java b/altosuilib/AltosInfoTable.java index 6bfe0cf5..72d4fb56 100644 --- a/altosuilib/AltosInfoTable.java +++ b/altosuilib/AltosInfoTable.java @@ -280,9 +280,10 @@ public class AltosInfoTable extends JTable implements AltosFlightDisplay, Hierar info_add_row(3, "Gyro yaw", "%8.1f °/s", state.gyro_yaw()); if (state.mag_along() != AltosLib.MISSING) { /* Report mag in nanoteslas (1 G = 100000 nT (or γ)) */ - info_add_row(3, "Mag along", "%8.1f γ", state.mag_along() * 100000.0); - info_add_row(3, "Mag across", "%8.1f γ", state.mag_across() * 100000.0); - info_add_row(3, "Mag Through", "%8.1f γ", state.mag_through() * 100000.0); + info_add_row(3, "Mag along", "%8.1f µT", state.mag_along() * 100.0); + info_add_row(3, "Mag across", "%8.1f µT", state.mag_across() * 100.0); + info_add_row(3, "Mag Through", "%8.1f µT", state.mag_through() * 100.0); + info_add_row(3, "Mag Bearing", "%8.1f°", Math.atan2(state.mag_across(), state.mag_through()) * 180/Math.PI); } }