APM:Libraries
libraries
AP_RCProtocol
AP_RCProtocol_SBUS_NI.h
Go to the documentation of this file.
1
/*
2
* This file is free software: you can redistribute it and/or modify it
3
* under the terms of the GNU General Public License as published by the
4
* Free Software Foundation, either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* This file is distributed in the hope that it will be useful, but
8
* WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
* See the GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License along
13
* with this program. If not, see <http://www.gnu.org/licenses/>.
14
*
15
*/
16
17
#pragma once
18
19
#include "
AP_RCProtocol.h
"
20
#include "
AP_RCProtocol_SBUS.h
"
21
22
class
AP_RCProtocol_SBUS_NI
:
public
AP_RCProtocol_SBUS
{
23
public
:
24
AP_RCProtocol_SBUS_NI
(
AP_RCProtocol
&_frontend) :
AP_RCProtocol_SBUS
(_frontend),
saved_width
(0) {}
25
void
process_pulse
(uint32_t width_s0, uint32_t width_s1)
override
{
26
AP_RCProtocol_SBUS::process_pulse
(
saved_width
, width_s0);
27
saved_width
= width_s1;
28
}
29
private
:
30
uint32_t
saved_width
;
31
};
AP_RCProtocol_SBUS_NI::saved_width
uint32_t saved_width
Definition:
AP_RCProtocol_SBUS_NI.h:30
AP_RCProtocol_SBUS_NI::AP_RCProtocol_SBUS_NI
AP_RCProtocol_SBUS_NI(AP_RCProtocol &_frontend)
Definition:
AP_RCProtocol_SBUS_NI.h:24
AP_RCProtocol.h
AP_RCProtocol_SBUS_NI::process_pulse
void process_pulse(uint32_t width_s0, uint32_t width_s1) override
Definition:
AP_RCProtocol_SBUS_NI.h:25
AP_RCProtocol
Definition:
AP_RCProtocol.h:25
AP_RCProtocol_SBUS::process_pulse
void process_pulse(uint32_t width_s0, uint32_t width_s1) override
Definition:
AP_RCProtocol_SBUS.cpp:205
AP_RCProtocol_SBUS.h
AP_RCProtocol_SBUS
Definition:
AP_RCProtocol_SBUS.h:22
AP_RCProtocol_SBUS_NI
Definition:
AP_RCProtocol_SBUS_NI.h:22
Generated on Sun Jun 17 2018 14:18:51 for APM:Libraries by
1.8.13