APM:Libraries
libraries
AP_HAL_Linux
RCInput_UDP.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
RCInput.h
"
4
#include <
AP_HAL/utility/Socket.h
>
5
#include "
RCInput_UDP_Protocol.h
"
6
7
#define RCINPUT_UDP_DEF_PORT 777
8
9
namespace
Linux
{
10
11
class
RCInput_UDP
:
public
RCInput
12
{
13
public
:
14
RCInput_UDP
();
15
void
init
();
16
void
_timer_tick
(
void
);
17
private
:
18
SocketAPM
_socket
{
true
};
19
uint16_t
_port
;
20
struct
rc_udp_packet
_buf
;
21
uint64_t
_last_buf_ts
;
22
uint16_t
_last_buf_seq
;
23
};
24
25
}
Linux::RCInput
Definition:
RCInput.h:11
Linux::RCInput_UDP::_socket
SocketAPM _socket
Definition:
RCInput_UDP.h:18
Linux::RCInput_UDP::_last_buf_ts
uint64_t _last_buf_ts
Definition:
RCInput_UDP.h:21
Linux::RCInput_UDP::RCInput_UDP
RCInput_UDP()
Definition:
RCInput_UDP.cpp:11
Linux::RCInput_UDP::_buf
struct rc_udp_packet _buf
Definition:
RCInput_UDP.h:20
Linux::RCInput_UDP::init
void init()
Definition:
RCInput_UDP.cpp:17
RCInput.h
Linux::RCInput_UDP::_timer_tick
void _timer_tick(void)
Definition:
RCInput_UDP.cpp:29
Linux::RCInput_UDP::_last_buf_seq
uint16_t _last_buf_seq
Definition:
RCInput_UDP.h:22
RCInput_UDP_Protocol.h
Linux
Definition:
CameraSensor.h:19
Socket.h
Linux::RCInput_UDP
Definition:
RCInput_UDP.h:11
Linux::RCInput_UDP::_port
uint16_t _port
Definition:
RCInput_UDP.h:19
Generated on Sun Jun 17 2018 14:18:49 for APM:Libraries by
1.8.13