
This project has now been merged into upstream FlightGear, so you no longer need to apply patches or build from source! Visit the FlightGear nightly builds website to obtain the latest build for your platform of choice. Photoscenery allows you to recognize the terrain, improving your experience when flying with visual flight rules (VFR). Normally, FlightGear uses generic terrain textures. It is fully compatible with Atmospheric Light Scattering (as well as the default pipeline), and works with your existing scenery. The photoscenery is an overlay, which overrides the traditional scenery textures when there is a satellite orthophoto available for the current tile.
Flightgear wikipedia free#
# command = '"' + flightgear_path + '\\bin\\fgfs.This project brings support for photoscenery to FlightGear, the free and open-source flight simulator. sendMessage( str( "FlightGear path has been set.")) copy( "splash.png", flightgear_path + " \\data \\Aircraft \\c172p \\") remove( flightgear_path + " \\data \\Aircraft \\c172p \\splash.png") sendMessage( str( "Disconnected from FlightGear")) sendMessage( 'Disconnected from FlightGear ') sendMessage( str( "Already connected to FlightGear")) sendMessage( str( "error:Cannot connect to FlightGear. sendMessage( str( "Connected to FlightGear via telnet on port 9000")) sendMessage( 'Connected to FlightGear via telnet on port ' + str( flightgear_server_port)) Return str( "Logging has been terminated")įg_connected = fg is not None and fg_connectedįg = FlightGear( flightgear_server, flightgear_server_port) # ndMessage " Written to log:" + param_strĭef logging_worker( interval, csv, parameters):Ĭancel_logger_instance = call_repeatedly( float( interval), write_param_to_file, parameters) With open( log_filename, "a") as log_file: wait( interval): # the first call is in `interval` secs Return str( "error:Please connect to FlightGear before sending commands")ĭef call_repeatedly( interval, func, * args): Return str( "Parameter logging started.") Logging_worker( interval, csv, parameters) If fg_connected is not None and fg_connected:įg/jsbsim/propulsion/tank/" + "contents-lbs"] = 160 Return str( "error:Requested parameter not found") Return str( fg/jsbsim/propulsion/tank/" + "contents-lbs"]) Return get( "fdm/jsbsim/aero/function", "kCLge") Return get( "fdm/jsbsim/aero/function", "kCDge") Return get( "fdm/jsbsim/aero", "cl-squared") Return get( "fdm/jsbsim/aero/coefficient", "CLq") Return get( "fdm/jsbsim/aero/coefficient", "CLadot") Return get( "fdm/jsbsim/aero/coefficient", "CLDe") Return get( "fdm/jsbsim/aero/coefficient", "CLDf") Return get( "fdm/jsbsim/aero/coefficient", "CLwbh") Return get( "fdm/jsbsim/aero/coefficient", "CDbeta") Return get( "fdm/jsbsim/aero/coefficient", "CDDe") Return get( "fdm/jsbsim/aero/coefficient", "CDwbh") Return get( "fdm/jsbsim/aero/coefficient", "CDDf") Return get( "fdm/jsbsim/aero/coefficient", "CDo") Return get( "fdm/jsbsim/inertia", "weight-lbs") Return get( "engines/engine", "fuel-consumed-lbs") Return get( "engines/engine", "torque-ftlb") Return get( "engines/engine", "thrust-lbs") Return get( "engines/engine", "prop-thrust") Return get( "fdm/jsbsim/accelerations", "rdot-rad_sec2") Return get( "fdm/jsbsim/accelerations", "qdot-rad_sec2") Return get( "fdm/jsbsim/accelerations", "pdot-rad_sec2") Return get( "fdm/jsbsim/accelerations", "wdot-ft_sec2") Return get( "fdm/jsbsim/accelerations", "vdot-ft_sec2") Return get( "fdm/jsbsim/accelerations", "udot-ft_sec2") Return get( "fdm/jsbsim/velocities", "r-rad_sec") Return get( "fdm/jsbsim/velocities", "q-rad_sec") Return get( "fdm/jsbsim/velocities", "p-rad_sec") Return get( "fdm/jsbsim/velocities", "w-fps") Return get( "fdm/jsbsim/velocities", "v-fps") Return get( "fdm/jsbsim/velocities", "u-fps") Return get( "velocities", "groundspeed-kt") Return get( "velocities", "vertical-speed-fps") Return get( "controls/flight", "wing-sweep") Return get( "controls/flight", "rudder-trim") Return get( "controls/flight", "elevator-trim") Return get( "controls/flight", "elevator") Return get( "controls/flight", "aileron-trim") Return get( "controls/flight", "aileron") Return get( "orientation", "side-slip-deg") Return get( "orientation", "yaw-rate-degps") Return get( "orientation", "pitch-rate-degps") Return get( "orientation", "roll-rate-degps") Return get( "orientation", "heading-deg") Return get( "instrumentation/gps", "odometer") # ndMessage "Alpha Deg %.5f" % (fg/alpha-deg']) SimpleWebSocketServer import SimpleWebSocketServer, WebSocketįrom multiprocessing import Process, freeze_supportįlightgear_path = "C:\Program Files\FlightGear 2020.3" From _socket import SO_REUSEADDR, SOL_SOCKETįrom libs.
