How snansrin/flightsimrc works
FlightSimRC is a browser-based RC aircraft simulator for solo practice and informal multiplayer flying. The pilot selects an aircraft, field, and conditions; configures keyboard or controller input; flies a physics-driven session; and views instruments, scenery, and optional remote pilots. Separate capabilities include guided controller calibration, flight-school lessons, and engine audio. The graph follows documented and indexed relationships; some source files were not sampled, so uncertain links are omitted rather than inferred.
Main entry points: main.tsx App and flight UI · simulation.ts Simulation engine · FlightScene.tsx Flight scene · Airfield.tsx Airfield scenery
Components 30
Flight experience
- App and flight UI
src/main.tsx - Flight deck
src/FlightDeck.tsx - Aircraft selection
src/AircraftHangar.tsx - Quick flight
src/quickFlight.ts
Controller setup
- Controller profiles
src/controllerSelection.ts - USB HID input
src/hid.ts - Input mapping
src/input.ts - Guided calibration
src/guidedSetup.ts - Signal display
src/ControllerSignalRow.tsx
Flight simulation
- Flight state and controls
src/flight.ts - Simulation engine
src/sim/simulation.ts - Aircraft catalogue
src/sim/catalog.ts - Aerodynamics
src/sim/aero.ts - Rotorcraft dynamics
src/sim/rotor.ts - Rigid-body dynamics
src/sim/rigidBody.ts - Atmosphere and wind
src/sim/atmosphere.ts
World and rendering
- Airfields and weather
src/sim/fields.ts - Geographic terrain
src/sim/worldTerrain.ts - World picker
src/WorldPicker.tsx - Flight scene
src/scene/FlightScene.tsx - Aircraft rendering
src/scene/Vehicles.tsx - Airfield scenery
src/scene/Airfield.tsx - Earth terrain rendering
src/scene/EarthTerrain.tsx - Flight instruments
src/scene/Instruments.tsx
Training and multiplayer
- Flight school
src/school.ts - Multiplayer rooms
src/multiplayer.ts - Remote aircraft
src/scene/RemoteAircraft.tsx - Engine audio
src/audio.ts
Other components
- Pilot
- Supabase Realtime
Connections 36
- Pilot → App and flight UI: uses
- App and flight UI → Aircraft selection: shows
src/main.tsx - App and flight UI → Flight deck: renders
src/main.tsx - App and flight UI → Quick flight: uses
src/main.tsx - Pilot → Controller profiles: configures
- App and flight UI → Controller profiles: uses
src/main.tsx - App and flight UI → USB HID input: opens
src/main.tsx - USB HID input → Input mapping: provides signals
src/hid.ts - App and flight UI → Input mapping: reads
src/main.tsx - App and flight UI → Guided calibration: uses
src/main.tsx - Input mapping → Flight state and controls: defines controls
src/input.ts - App and flight UI → Signal display: renders
src/main.tsx - App and flight UI → Simulation engine: runs
src/main.tsx - Simulation engine → Aircraft catalogue: selects aircraft
src/sim/simulation.ts - Simulation engine → Airfields and weather: gets field data
src/sim/simulation.ts - Simulation engine → Aerodynamics: computes forces
src/sim/simulation.ts - Simulation engine → Rotorcraft dynamics: computes rotor forces
src/sim/simulation.ts - Simulation engine → Rigid-body dynamics: integrates motion
src/sim/simulation.ts - Simulation engine → Atmosphere and wind: builds environment
src/sim/simulation.ts - World picker → Geographic terrain: uses terrain
src/WorldPicker.tsx - App and flight UI → World picker: shows
src/main.tsx - App and flight UI → Flight scene: renders
src/main.tsx - Flight scene → Aircraft rendering: renders
src/scene/FlightScene.tsx - Flight scene → Airfield scenery: renders
src/scene/FlightScene.tsx - Flight scene → Earth terrain rendering: renders
src/scene/FlightScene.tsx - Flight scene → Remote aircraft: renders
src/scene/FlightScene.tsx - Flight scene → Flight instruments: displays
- Airfield scenery → Airfields and weather: reads field data
src/scene/Airfield.tsx - Airfield scenery → Atmosphere and wind: reads wind
src/scene/Airfield.tsx - Earth terrain rendering → Geographic terrain: uses terrain
src/scene/EarthTerrain.tsx - Aircraft rendering → Aircraft catalogue: uses aircraft specs
- App and flight UI → Flight school: uses
src/main.tsx - App and flight UI → Multiplayer rooms: uses
src/main.tsx - Multiplayer rooms → Supabase Realtime: broadcasts
- Flight scene → Multiplayer rooms: reads remote pilots
src/scene/FlightScene.tsx - App and flight UI → Engine audio: creates
src/main.tsx