APM:Libraries
libraries
AP_SBusOut
AP_SBusOut.h
Go to the documentation of this file.
1
/*
2
* AP_SBusOut.h
3
*
4
* Created on: Aug 19, 2017
5
* Author: Mark Whitehorn
6
*/
7
8
#pragma once
9
10
#include <
AP_HAL/AP_HAL.h
>
11
#include <
AP_SerialManager/AP_SerialManager.h
>
12
#include <
AP_Param/AP_Param.h
>
13
14
class
AP_SBusOut
{
15
public
:
16
AP_SBusOut
();
17
18
/* Do not allow copies */
19
AP_SBusOut
(
const
AP_SBusOut
&other) =
delete
;
20
AP_SBusOut
&
operator=
(
const
AP_SBusOut
&) =
delete
;
21
22
static
const
struct
AP_Param::GroupInfo
var_info
[];
23
24
void
update
();
25
26
private
:
27
AP_HAL::UARTDriver
*
sbus1_uart
;
28
29
void
init
(
void
);
30
31
uint16_t
sbus_frame_interval
;
// microseconds
32
33
AP_Int16
sbus_rate
;
34
bool
initialised
;
35
};
AP_SerialManager.h
AP_HAL.h
AP_SBusOut::AP_SBusOut
AP_SBusOut()
Definition:
AP_SBusOut.cpp:70
AP_SBusOut::sbus1_uart
AP_HAL::UARTDriver * sbus1_uart
Definition:
AP_SBusOut.h:27
AP_HAL::UARTDriver
Definition:
UARTDriver.h:9
AP_Param.h
A system for managing and storing variables that are of general interest to the system.
AP_SBusOut::init
void init(void)
Definition:
AP_SBusOut.cpp:151
AP_SBusOut::var_info
static const struct AP_Param::GroupInfo var_info[]
Definition:
AP_SBusOut.h:22
AP_Param::GroupInfo
Definition:
AP_Param.h:145
AP_SBusOut::operator=
AP_SBusOut & operator=(const AP_SBusOut &)=delete
AP_SBusOut::update
void update()
Definition:
AP_SBusOut.cpp:82
AP_SBusOut::sbus_rate
AP_Int16 sbus_rate
Definition:
AP_SBusOut.h:33
AP_SBusOut
Definition:
AP_SBusOut.h:14
AP_SBusOut::sbus_frame_interval
uint16_t sbus_frame_interval
Definition:
AP_SBusOut.h:31
AP_SBusOut::initialised
bool initialised
Definition:
AP_SBusOut.h:34
Generated on Sun Jun 17 2018 14:18:51 for APM:Libraries by
1.8.13