output of the period of each message (PERIOD_<message_name>_<telemetry_mode index>

This commit is contained in:
Pascal Brisset
2007-10-13 08:22:11 +00:00
parent a461d2c920
commit 59cfaf40c3
+8
View File
@@ -126,9 +126,17 @@ let _ =
let modes = Xml.children process in
let i = ref 0 in
(** For each mode of this process *)
List.iter (fun mode ->
let name = ExtXml.attrib mode "name" in
Xml2h.define (sprintf "TELEMETRY_MODE_%s_%s" process_name name) (string_of_int !i);
(* Output the periods of the messages *)
List.iter
(fun x ->
let p = ExtXml.attrib x "period"
and n = ExtXml.attrib x "name" in
Xml2h.define (sprintf "PERIOD_%s_%d" n !i) (sprintf "(%s)" p))
(Xml.children mode);
incr i)
modes;