4 #include <caml/alloc.h>
5 #include <caml/mlvalues.h>
6 #include <caml/memory.h>
14 return Val_int(
sizeof(
struct FGNetGUI));
17 value
fg_msg_native(value
s, value lat, value lon, value z, value phi, value theta, value psi);
20 return fg_msg_native(argv[0], argv[1], argv[2], argv[3], argv[4], argv[5], argv[6]);
25 value
fg_msg_native(value
s, value lat, value lon, value z, value phi, value theta, value psi) {
34 msg.
phi = Double_val(phi);
35 msg.
theta = Double_val(theta);
36 msg.
psi = - Double_val(psi) + M_PI_2;
54 memcpy(String_val(s), (
char*)&msg,
sizeof(msg));
value fg_sizeof(value unit)
Values boxing for Flight Gear.
#define FG_NET_GUI_VERSION
value fg_msg_bytecode(value *argv, int argc)
float fuel_quantity[FG_NET_GUI_MAX_TANKS]
value fg_msg_native(value s, value lat, value lon, value z, value phi, value theta, value psi)
float course_deviation_deg