ardupilot/libraries/AP_HAL_Linux/RCInput_UDP_Protocol.h

12 lines
247 B
C
Raw Permalink Normal View History

#pragma once
#define RCINPUT_UDP_NUM_CHANNELS 8
#define RCINPUT_UDP_VERSION 2
struct __attribute__((packed)) rc_udp_packet {
uint32_t version;
uint64_t timestamp_us;
uint16_t sequence;
uint16_t pwms[RCINPUT_UDP_NUM_CHANNELS];
};