-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.h
51 lines (41 loc) · 1.49 KB
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* This program is part an esp32-based controller to pilot Parrot Minidrones
* Copyright (C) 2021 Pierre-Loup Martin
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PARROT_ESP_SETTINGS_H
#define PARROT_ESP_SETTINGS_H
/*
* Here should be set all the settings that a user may want to modify :
* Pinouts
* Protocol used for controls inputs from transmitter
* Protcols used for (hopefully !) telemetry
* and so on.
*/
// #define NUM_CHANNELS 8 // max : 8
#define FRAME_TIMEOUT 200 // time before a frame is resent, in milliseconds
// Protocol from TX to esp
// choose only one protocol for communication from radio to esp32 !
//#define TX_USE_PPM
#define TX_USE_SBUS
#define PIN_RX 16
#define PIN_TX 17
#define PIN_SPORT 27
// PPM only settings
#define PIN_PPM_INPUT PIN_RX
// S.bus onlyt settings
#define PIN_SBUS_INPUT PIN_RX
#define TELEMETRY_USE_SPORT
#endif