dRonin
adbada4
dRonin firmware
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
pios_modules.h
Go to the documentation of this file.
1
11
/*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful, but
18
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20
* for more details.
21
*
22
* You should have received a copy of the GNU General Public License along
23
* with this program; if not, see <http://www.gnu.org/licenses/>
24
*
25
* Additional note on redistribution: The copyright and license notices above
26
* must be maintained in each individual source file that is a derivative work
27
* of this source file; otherwise redistribution is prohibited.
28
*/
29
30
#ifndef PIOS_MODULES_H_
31
#define PIOS_MODULES_H_
32
33
enum
pios_modules
{
34
PIOS_MODULE_COMUSBBRIDGE
,
35
PIOS_MODULE_GPS
,
36
PIOS_MODULE_STORM32BGC
,
37
PIOS_MODULE_UAVOFRSKYSENSORHUBBRIDGE
,
38
PIOS_MODULE_UAVOFRSKYSPORTBRIDGE
,
39
PIOS_MODULE_UAVOHOTTBRIDGE
,
40
PIOS_MODULE_UAVOLIGHTTELEMETRYBRIDGE
,
41
PIOS_MODULE_UAVOMAVLINKBRIDGE
,
42
PIOS_MODULE_UAVOMSPBRIDGE
,
43
PIOS_MODULE_UAVOCROSSFIRETELEMETRY
,
44
PIOS_MODULE_VTXCONFIG
,
45
PIOS_MODULE_AUTOTUNE
,
46
PIOS_MODULE_NUM
47
};
48
49
#ifndef PIOS_NO_MODULES
50
void
PIOS_Modules_Enable
(
enum
pios_modules
module);
51
bool
PIOS_Modules_IsEnabled
(
enum
pios_modules
module);
52
#else
53
#define PIOS_Modules_Enable(x) do { (void) (x); } while (0)
54
#endif
55
56
/* Couldn't really find a better place to put this declaration... */
57
enum
actuator_interlock
{
58
ACTUATOR_INTERLOCK_OK
,
59
ACTUATOR_INTERLOCK_STOPREQUEST
,
60
ACTUATOR_INTERLOCK_STOPPED
,
61
};
62
63
extern
volatile
enum
actuator_interlock
actuator_interlock
;
64
65
/* Ideally would have a better home for this constant */
66
#define DSHOT_CMD_BEACON3 (3)
67
68
extern
int
actuator_send_dshot_command
(uint8_t cmd_id, uint8_t num_to_send,
69
uint16_t
channel_mask
);
70
extern
void
system_annunc_custom_string
(
const
char
*
string
);
71
extern
void
telemetry_set_inhibit
(
bool
inhibit);
72
73
#endif // PIOS_MODULES_H_
74
PIOS_MODULE_UAVOMSPBRIDGE
Definition:
pios_modules.h:42
PIOS_MODULE_STORM32BGC
Definition:
pios_modules.h:36
ACTUATOR_INTERLOCK_STOPPED
Definition:
pios_modules.h:60
channel_mask
static uint32_t channel_mask
Definition:
pios_servo.c:57
PIOS_Modules_IsEnabled
bool PIOS_Modules_IsEnabled(enum pios_modules module)
Definition:
pios_modules.c:41
PIOS_Modules_Enable
void PIOS_Modules_Enable(enum pios_modules module)
Definition:
pios_modules.c:34
PIOS_MODULE_UAVOCROSSFIRETELEMETRY
Definition:
pios_modules.h:43
PIOS_MODULE_UAVOFRSKYSENSORHUBBRIDGE
Definition:
pios_modules.h:37
ACTUATOR_INTERLOCK_STOPREQUEST
Definition:
pios_modules.h:59
PIOS_MODULE_UAVOLIGHTTELEMETRYBRIDGE
Definition:
pios_modules.h:40
PIOS_MODULE_UAVOFRSKYSPORTBRIDGE
Definition:
pios_modules.h:38
actuator_interlock
actuator_interlock
Definition:
pios_modules.h:57
pios_modules
pios_modules
Definition:
pios_modules.h:33
PIOS_MODULE_VTXCONFIG
Definition:
pios_modules.h:44
PIOS_MODULE_UAVOHOTTBRIDGE
Definition:
pios_modules.h:39
telemetry_set_inhibit
void telemetry_set_inhibit(bool inhibit)
Definition:
telemetry.c:981
PIOS_MODULE_UAVOMAVLINKBRIDGE
Definition:
pios_modules.h:41
ACTUATOR_INTERLOCK_OK
Definition:
pios_modules.h:58
PIOS_MODULE_GPS
Definition:
pios_modules.h:35
system_annunc_custom_string
void system_annunc_custom_string(const char *string)
Definition:
systemmod.c:417
PIOS_MODULE_AUTOTUNE
Definition:
pios_modules.h:45
actuator_send_dshot_command
int actuator_send_dshot_command(uint8_t cmd_id, uint8_t num_to_send, uint16_t channel_mask)
Definition:
actuator.c:170
PIOS_MODULE_NUM
Definition:
pios_modules.h:46
PIOS_MODULE_COMUSBBRIDGE
Definition:
pios_modules.h:34
flight
PiOS
inc
pios_modules.h
Generated by
1.8.6