APM:Libraries
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>
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:
28 
29  void init(void);
30 
31  uint16_t sbus_frame_interval; // microseconds
32 
33  AP_Int16 sbus_rate;
35 };
AP_HAL::UARTDriver * sbus1_uart
Definition: AP_SBusOut.h:27
A system for managing and storing variables that are of general interest to the system.
void init(void)
Definition: AP_SBusOut.cpp:151
static const struct AP_Param::GroupInfo var_info[]
Definition: AP_SBusOut.h:22
AP_SBusOut & operator=(const AP_SBusOut &)=delete
void update()
Definition: AP_SBusOut.cpp:82
AP_Int16 sbus_rate
Definition: AP_SBusOut.h:33
uint16_t sbus_frame_interval
Definition: AP_SBusOut.h:31
bool initialised
Definition: AP_SBusOut.h:34