8 #include "generated/airframe.h"
9 #include "generated/flight_plan.h"
17 #include <caml/mlvalues.h>
20 value sim_use_gps_pos(
value x,
value y,
value z,
value c,
value a,
value s,
value cl,
value t,
value m,
value lat,
23 gps.
fix = (Bool_val(m) ? 3 : 0);
25 gps.
hmsl = Double_val(a) * 1000.;
31 gps.
tow = Double_val(t) * 1000.;
35 #ifdef GPS_USE_LATLONG
38 lla_f.
lat = Double_val(lat);
39 lla_f.
lon = Double_val(lon);
40 lla_f.
alt = Double_val(a);
49 #else // GPS_USE_LATLONG
55 #endif // GPS_USE_LATLONG
86 return sim_use_gps_pos(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10]);
uint8_t qi
quality bitfield (GPS receiver specific)
int32_t north
in centimeters
struct SVinfo svinfos[GPS_NB_CHANNELS]
holds information from the Space Vehicles (Satellites)
int16_t azim
azimuth in deg
uint32_t pacc
position accuracy in cm
uint8_t nb_channels
Number of scanned satellites.
void gps_sim_publish(void)
position in UTM coordinates Units: meters
int32_t east
in centimeters
uint8_t svid
Satellite ID.
struct UtmCoor_i utm_pos
position in UTM (north,east: cm; alt: mm over ellipsoid)
int8_t elev
elevation in deg
uint32_t sacc
speed accuracy in cm/s
uint8_t zone
UTM zone number.
Paparazzi floating point math for geodetic calculations.
vector in Latitude, Longitude and Altitude
value sim_use_gps_pos_bytecode(value *a, int argn)
int32_t hmsl
height above mean sea level in mm
uint8_t cno
Carrier to Noise Ratio (Signal Strength) in dbHz.
uint32_t tow
GPS time of week in ms.
Device independent GPS code (interface)
uint16_t pdop
position dilution of precision scaled by 100
Paparazzi fixed point math for geodetic calculations.
uint8_t zone
UTM zone number.
value sim_use_gps_pos(value x, value y, value z, value c, value a, value s, value cl, value t, value m, value lat, value lon)
From airborne/autopilot/.
float alt
in meters above WGS84 reference ellipsoid
int32_t course
GPS course over ground in rad*1e7, [0, 2*Pi]*1e7 (CW/north)
#define LLA_BFP_OF_REAL(_o, _i)
uint8_t flags
bitfield with GPS receiver specific flags
uint8_t num_sv
number of sat in fix
uint16_t gspeed
norm of 2d ground speed in cm/s
void ubxsend_cfg_rst(uint16_t a, uint8_t b)
struct LlaCoor_i lla_pos
position in LLA (lat,lon: deg*1e7; alt: mm over ellipsoid)
struct NedCoor_i ned_vel
speed NED in cm/s
struct GpsState gps
global GPS state
void utm_of_lla_f(struct UtmCoor_f *utm, struct LlaCoor_f *lla)