Skip to content

semcodech/condor2xctrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Condor2 to XCTrack UDP Connector

Simple script to use Condor2 (https://www.condorsoaring.com/) as an external sensor with XCTrack.

This script retrieves NMEA messages received from Condor2 on a virtual COM port and forwards them to XCTrack (UDP server). Before forwarding, the received NMEA messages are manipulated to be valid XCTrack sensor input.

Prerequisites

The script is expected to run on the same host as the Condor2 soaring simulator, while the XCTrack application is executed on another device (e.g. smartphone) in the same network as the host running Condor2.

NOTE: This connector is not fully tested, experiments were done on following setups.

  • Windows 11, com0com virtual COM port driver, Condor 2.1.8, XCTrack 0.9.8.6
  • Windows 10, com0com virtual COM port driver (64-bit version), Condor 2.2.0, XCTrack 0.9.11.11

Installation

  1. Install Python3 (>=3.10), e.g. via the Microsoft Store.

  2. Install a virtual serial port driver, e.g. com0com (https://com0com.sourceforge.net/).

    See also https://www.condorsoaring.com/forums/viewtopic.php?t=12538 (Step 3 - download hub4com not required)

  3. Install Python package dependencies (in a Python virtual environment).

    pip install -r requirements.txt
    

Configuration

  1. Configure Condor2 to send NMEA messages to the virtual COM port.

    Setup -> Options -> NMEA output: Enable and set port accordingly (choose CNCA0 from the available list)

  2. Configure XCTrack to use external sensors.

    1. Enter Settings -> Connections and Sensors.
    2. Enable External Sensors -> UDP server.
    3. Note down the network port (by default 10110).
    4. Enable (at least) use of external GPS and use of external flight speed.

Usage

Start XCTrack, Condor2 and run the Python script.

python condor2xctrack.py <Condor2 serial port> --udp_server_ip=<XCTrack device IP> [--udp_server_port <XCTrack UDP port>] 
OR  
python condor2xctrack.py <Condor2 serial port> --output_serial_port=<XCTrack Serial Port> [--output_serial_baudrate <XCTrack Serial Baudrate>]   

Example UDP

XCTrack device IP: 192.168.1.123, XCTrack server port: default (10110), Condor2 COM port: CNCA0 (com0com)

NOTE: Ensure you use CNCB0, not CNCA0 as set in Condor2.

python condor2xctrack.py \\.\CNCB0 --udp_server_ip=192.168.1.123

Example Serial

XCTrack serial port: COM6, Condor2 COM port: CNCA0 (com0com)

NOTE: Ensure you use CNCB0, not CNCA0 as set in Condor2.

python condor2xctrack.py \\.\CNCB0 --output_serial_port=COM6

About

Connector for using Condor2 soaring simulator as an external sensor with XCTrack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages