PX4 Community Q&A: June 28, 2023

Is there a way to trigger Airtraffic warnings without having the actual Hardware?

I triggered it with such idea of the structure:

    # Create the ADS-B vehicle message
    adsb_vehicle = AdsbVehicle(
        icao_address=2,  # Unique ICAO address for the virtual vehicle
        latitude_deg=latitude_deg,
        longitude_deg=longitude_deg,
        absolute_altitude_m=100.0,  # Initial altitude
        heading_deg=0.0,  # Initial heading
        horizontal_velocity_m_s=10.0,  # Initial velocity (north direction)
        vertical_velocity_m_s=0.0,  # Initial vertical velocity
        callsign="Virtual Traffic",  # Callsign for the virtual vehicle
        emitter_type=AdsbEmitterType.LARGE,  # ADS-B emitter type
        squawk=1000,  # Squawk code
        tslc_s=0  # Time since last communication in seconds
    )
1 Like