Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
cc2500_frsky_shared.h
Go to the documentation of this file.
1
// betaflight/src/main/rx/cc2500_frsky_shared.h @ cb66ee0
2
/*
3
* This file is part of Cleanflight and Betaflight.
4
*
5
* Cleanflight and Betaflight are free software. You can redistribute
6
* this software and/or modify this software under the terms of the
7
* GNU General Public License as published by the Free Software
8
* Foundation, either version 3 of the License, or (at your option)
9
* any later version.
10
*
11
* Cleanflight and Betaflight are distributed in the hope that they
12
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
13
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
* See the GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this software.
18
*
19
* If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#pragma once
23
24
//#include "rx/rx_spi.h"
25
26
#define MAX_MISSING_PKT 100
27
28
#define DEBUG_DATA_ERROR_COUNT 0
29
#define DEBUG_DATA_MISSING_PACKETS 1
30
#define DEBUG_DATA_BAD_FRAME 2
31
32
33
#define SYNC_DELAY_MAX 9000
34
35
#define MAX_MISSING_PKT 100
36
37
enum
{
38
STATE_INIT
= 0,
39
STATE_BIND
,
40
STATE_BIND_TUNING
,
41
STATE_BIND_BINDING1
,
42
STATE_BIND_BINDING2
,
43
STATE_BIND_COMPLETE
,
44
STATE_STARTING
,
45
STATE_UPDATE
,
46
STATE_DATA
,
47
STATE_TELEMETRY
,
48
STATE_RESUME
,
49
};
50
51
extern
uint8_t
listLength
;
52
extern
uint32_t
missingPackets
;
53
extern
timeDelta_t
timeoutUs
;
54
55
void
initialiseData
(
bool
inBindState);
56
57
void
nextChannel
(
uint8_t
skip);
timeDelta_t
int32_t timeDelta_t
Definition:
cc2500_compat.h:91
timeoutUs
timeDelta_t timeoutUs
Definition:
cc2500_frsky_shared.c:68
missingPackets
uint32_t missingPackets
Definition:
cc2500_frsky_shared.c:67
listLength
uint8_t listLength
Definition:
cc2500_frsky_shared.c:72
STATE_BIND_BINDING1
@ STATE_BIND_BINDING1
Definition:
cc2500_frsky_shared.h:41
STATE_BIND_BINDING2
@ STATE_BIND_BINDING2
Definition:
cc2500_frsky_shared.h:42
STATE_DATA
@ STATE_DATA
Definition:
cc2500_frsky_shared.h:46
STATE_BIND_COMPLETE
@ STATE_BIND_COMPLETE
Definition:
cc2500_frsky_shared.h:43
STATE_TELEMETRY
@ STATE_TELEMETRY
Definition:
cc2500_frsky_shared.h:47
STATE_INIT
@ STATE_INIT
Definition:
cc2500_frsky_shared.h:38
STATE_STARTING
@ STATE_STARTING
Definition:
cc2500_frsky_shared.h:44
STATE_RESUME
@ STATE_RESUME
Definition:
cc2500_frsky_shared.h:48
STATE_UPDATE
@ STATE_UPDATE
Definition:
cc2500_frsky_shared.h:45
STATE_BIND_TUNING
@ STATE_BIND_TUNING
Definition:
cc2500_frsky_shared.h:40
STATE_BIND
@ STATE_BIND
Definition:
cc2500_frsky_shared.h:39
nextChannel
void nextChannel(uint8_t skip)
Definition:
cc2500_frsky_shared.c:412
initialiseData
void initialiseData(bool inBindState)
Definition:
cc2500_frsky_shared.c:169
uint32_t
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition:
vl53l1_types.h:78
uint8_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition:
vl53l1_types.h:98
sw
airborne
modules
radio_control
cc2500_frsky
cc2500_frsky_shared.h
Generated on Thu Dec 5 2024 13:05:31 for Paparazzi UAS by
1.9.1