RCInput_UDP_Protocol.h 247 B

1234567891011
  1. #pragma once
  2. #define RCINPUT_UDP_NUM_CHANNELS 8
  3. #define RCINPUT_UDP_VERSION 2
  4. struct __attribute__((packed)) rc_udp_packet {
  5. uint32_t version;
  6. uint64_t timestamp_us;
  7. uint16_t sequence;
  8. uint16_t pwms[RCINPUT_UDP_NUM_CHANNELS];
  9. };