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§

AsyncLocalBridge
Async client for interacting with RealFlight simulators via RealFlight Link.
AsyncLocalBridgeBuilder
Builder for AsyncLocalBridge.
AsyncRemoteBridge
Async client for interacting with a remote RealFlight simulator via a proxy server.
AsyncRemoteBridgeBuilder
Builder for AsyncRemoteBridge.
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).
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. Physical quantities use metric units (strongly-typed with uom feature, raw f32 otherwise).
Statistics
Represents a snapshot of performance metrics for a running RealFlightBridge.

Enums§

BridgeError
Errors that can occur when interacting with the RealFlight simulator.

Constants§

DEFAULT_SIMULATOR_HOST
Default RealFlight simulator address (localhost on standard port)

Traits§

AsyncBridge
Async version of the RealFlight bridge interface.
RealFlightBridge