PREL - Init the Airplane at Location ++++++++++++++++++++++++++++++++++++ :Send: Index of aircraft, and the type of start (see enumeration below). Depending on the type of start, additional parameters should be set.:: msg = struct.pack('<4sxii8siiddddd', b'PREL', type_start, # Integer: See enumeration below p, # 0 -> User aircraft, otherwise 1-19 apt_id.encode('utf-8'), # remember to encode string to bytes apt_rwy_idx, # it's an index, not the runway heading apt_rwy_dir, # again, an index lat_deg, lon_deg, # Not needed, if you use apt_id ele_mtr, # elevation psi_tru, # aircraft heading spd_msc) # speed sock.sendto(msg, (beacon['ip'], beacon['port'])) The "type of start" is a integer, currently one of: +-------------------------------+----+--------------------------------------------------+ | Enumeration | Int| Meaning | +===============================+====+==================================================+ | loc_repeat_last | 5 | used by ATC and reset-flt command | +-------------------------------+----+--------------------------------------------------+ | loc_specify_lle | 6 | used by maps and the like | +-------------------------------+----+--------------------------------------------------+ | loc_general_area | 7 | used to auto-load new airplanes when the number | | | | of airplanes is increased | +-------------------------------+----+--------------------------------------------------+ | loc_nearest_apt | 8 | used when we are just loading a new plane, | | | | not wanting to change the location in any way, | | | | but still starting in a proper manner for the | | | | new airplane. | +-------------------------------+----+--------------------------------------------------+ | | | | +-------------------------------+----+--------------------------------------------------+ | loc_snap_load | 9 | for when we are getting snapshots from movies | | | | and the like, so do not want to reset the | | | | flt-path or move the plane! | +-------------------------------+----+--------------------------------------------------+ | | | | +-------------------------------+----+--------------------------------------------------+ | loc_ram | 10| Ramp start | +-------------------------------+----+--------------------------------------------------+ | loc_tak | 11| Takeoff on runway | +-------------------------------+----+--------------------------------------------------+ | loc_vfr | 12| VFR app to runway | +-------------------------------+----+--------------------------------------------------+ | loc_ifr | 13| IFR app to runway | +-------------------------------+----+--------------------------------------------------+ | | | | +-------------------------------+----+--------------------------------------------------+ | loc_grs | 14| Grass strip | +-------------------------------+----+--------------------------------------------------+ | loc_drt | 15| Dirt strip | +-------------------------------+----+--------------------------------------------------+ | loc_grv | 16| Gravel strip | +-------------------------------+----+--------------------------------------------------+ | loc_wat | 17| Seaplane start | +-------------------------------+----+--------------------------------------------------+ | loc_pad | 18| Helipad start | +-------------------------------+----+--------------------------------------------------+ | loc_cat | 19| Carrier cat shot | +-------------------------------+----+--------------------------------------------------+ | | | | +-------------------------------+----+--------------------------------------------------+ | loc_tow | 20| Glider - Tow Plane | +-------------------------------+----+--------------------------------------------------+ | loc_win | 21| Glider - Winch | +-------------------------------+----+--------------------------------------------------+ | loc_frm | 22| Formation flying | +-------------------------------+----+--------------------------------------------------+ | loc_Are | 23| Refuel - Boom | +-------------------------------+----+--------------------------------------------------+ | loc_Nre | 24| Refuel - Basket | +-------------------------------+----+--------------------------------------------------+ | loc_drp | 25| B52 drop | +-------------------------------+----+--------------------------------------------------+ | loc_pig | 26| Piggy back with shuttle on top | +-------------------------------+----+--------------------------------------------------+ | | | | +-------------------------------+----+--------------------------------------------------+ | loc_car | 27| Aircraft carrier approach | +-------------------------------+----+--------------------------------------------------+ | loc_fri | 28| Frigate approach | +-------------------------------+----+--------------------------------------------------+ | loc_rig | 29| Small oil rig approach | +-------------------------------+----+--------------------------------------------------+ | loc_pla | 30| Large oil platform approach | +-------------------------------+----+--------------------------------------------------+ | loc_fir | 31| Forest fire approach | +-------------------------------+----+--------------------------------------------------+ | | | | +-------------------------------+----+--------------------------------------------------+ | loc_SO1 | 32| Shuttle stuff | +-------------------------------+----+--------------------------------------------------+ | loc_SO2 | 33| "" | +-------------------------------+----+--------------------------------------------------+ | loc_SO3 | 34| "" | +-------------------------------+----+--------------------------------------------------+ | loc_SO4 | 35| "" | +-------------------------------+----+--------------------------------------------------+ | loc_shuttle_glide | 36| we don't access this one except by dropping the | | | | shuttle when it is in piggyback | +-------------------------------+----+--------------------------------------------------+ Use the “loc_specify_lle” start type to simply set the lat, lon, and elevation as you like. You can leave the airport info unset in that case. Use "loc_ram" or "loc_tak" and specify an airport to start at an airport. .. toctree:: :maxdepth: 1