Skip to content

Commit

Permalink
Remove WIND_INFO for rotorcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
fvantienen committed Sep 22, 2016
1 parent 55d86ac commit 35162ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sw/ground_segment/cockpit/live.ml
Expand Up @@ -458,6 +458,10 @@ let create_ac = fun ?(confirm_kill=true) alert (geomap:G.widget) (acs_notebook:G
let via_http = Str.string_match (Str.regexp "http") af_url 0 in
let af_xml = ExtXml.parse_file ~noprovedtd:via_http af_file in

(** Get firmware name *)
let firmware = ExtXml.child af_xml "firmware" in
let firmware_name = ExtXml.attrib firmware "name" in

(** Get an alternate speech name if available *)
let speech_name = get_speech_name af_xml name in

Expand Down Expand Up @@ -746,7 +750,7 @@ let create_ac = fun ?(confirm_kill=true) alert (geomap:G.widget) (acs_notebook:G
true
in

if is_int ac_id then
if is_int ac_id && firmware_name = "fixedwing" then
ignore (Glib.Timeout.add 10000 send_wind);

begin
Expand Down

0 comments on commit 35162ca

Please sign in to comment.