mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 01:53:48 +08:00
parse gps pacc in GPS_INT message
This commit is contained in:
@@ -179,6 +179,8 @@ let log_and_parse = fun ac_name (a:Aircraft.aircraft) msg values ->
|
|||||||
a.flight_time <- ivalue "flight_time";
|
a.flight_time <- ivalue "flight_time";
|
||||||
(*if a.gspeed > 3. && a.ap_mode = _AUTO2 then
|
(*if a.gspeed > 3. && a.ap_mode = _AUTO2 then
|
||||||
Wind.update ac_name a.gspeed a.course*)
|
Wind.update ac_name a.gspeed a.course*)
|
||||||
|
| "GPS_INT" ->
|
||||||
|
a.gps_Pacc <- ivalue "pacc"
|
||||||
| "ROTORCRAFT_STATUS" ->
|
| "ROTORCRAFT_STATUS" ->
|
||||||
a.vehicle_type <- Rotorcraft;
|
a.vehicle_type <- Rotorcraft;
|
||||||
a.fbw.rc_status <- get_rc_status (ivalue "rc_status");
|
a.fbw.rc_status <- get_rc_status (ivalue "rc_status");
|
||||||
|
|||||||
Reference in New Issue
Block a user