1. X-Plane full support
Code: Select all
If emptyWeight <> 0 Then ' FSX or P3D running
Label19.Visible = True
TB_Payload.Visible = True
Dim payload As Double = ZeroFuelWeight - emptyWeight
Dim thisPayload As Double = thisZFW - thisEW
calcPayload = payload
TB_Payload.Text = thisPayload.ToString("F1") & unitTitle
Else 'fs9 or xplane running, get the emptyweight from the dispatch office
Dim payload As Double = ZeroFuelWeight - disEmptyWeight
Dim thisPayload As Double = thisZFW - thisDEW
calcPayload = payload
TB_Payload.Text = thisPayload.ToString("F1") & unitTitle
If disEmptyWeight <> 0 Then 'Show payload when the weight values are retrieved from the dispatch office/when the user presses Start Flight
Label19.Visible = True
TB_Payload.Visible = True
End If
End If
Code: Select all
&StartGW=" & (toWeight * 0.45359237).ToString("F1") & _
Code: Select all
&EndGW=" & (lndWeight * 0.45359237).ToString("F1")
3. Private Function getAircraftData(airName As String)
Μπορούμε να στέλνουμε και το sminosid στο query του ACARSaircraft.asp? Έχουμε θέμα με το B19C της cargo. Αυτήν την στιγμή στο συγκεκριμένο query το SminosID='DEFAULT', εκτός αν υπάρχει κάποιος συγκεκριμένος λόγος που βολεύει το ACARS.