Crate realflight_bridge

Crate realflight_bridge 

Source
Expand description

githubcrates-iolicense

RealFlight is a leading RC flight simulator that provides a realistic, physics-based environment for flying fixed-wing aircraft, helicopters, and drones. Used by both hobbyists and professionals, it simulates aerodynamics, wind conditions, and control responses, making it an excellent tool for flight control algorithm validation.

RealFlightBridge is a Rust library that interfaces with RealFlight Link, enabling external flight controllers to interact with the simulator. It allows developers to:

  • Send control commands to simulated aircraft.
  • Receive real-time simulated flight data for state estimation and control.
  • Test stabilization and autonomy algorithms in a controlled environment.

See README for examples and usage.

Modules§

bridge

Structs§

Configuration
Configuration settings for the RealFlight Link bridge.
ControlInputs
Control inputs for the RealFlight simulator using the standard RC channel mapping. Each channel value should be between 0.0 (minimum) and 1.0 (maximum).
ProxyServer
Server struct for handling incoming client connections.
RealFlightLocalBridge
A high-level client for interacting with RealFlight simulators via RealFlight Link.
RealFlightRemoteBridge
Client struct for managing TCP communication with the simulator server.
SimulatorState
Represents the complete state of the simulated aircraft in RealFlight. All physical quantities use SI units through the uom crate.
Statistics
Represents a snapshot of performance metrics for a running RealFlightBridge.

Traits§

RealFlightBridge