CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/AntennaTracker/defines.h
Views: 1798
1
#pragma once
2
3
// Controller modes
4
// ----------------
5
6
enum ServoType {
7
SERVO_TYPE_POSITION=0,
8
SERVO_TYPE_ONOFF=1,
9
SERVO_TYPE_CR=2
10
};
11
12
enum AltSource {
13
ALT_SOURCE_BARO=0,
14
ALT_SOURCE_GPS=1,
15
ALT_SOURCE_GPS_VEH_ONLY=2
16
};
17
18
enum class PWMDisarmed {
19
ZERO = 0,
20
TRIM,
21
};
22
23
// Filter
24
#define SERVO_OUT_FILT_HZ 0.1f
25
#define G_Dt 0.02f
26
27
// Logging parameters
28
#define MASK_LOG_ATTITUDE (1<<0)
29
#define MASK_LOG_GPS (1<<1)
30
#define MASK_LOG_RCIN (1<<2)
31
#define MASK_LOG_IMU (1<<3)
32
#define MASK_LOG_RCOUT (1<<4)
33
#define MASK_LOG_COMPASS (1<<5)
34
#define MASK_LOG_CURRENT (1<<6)
35
#define MASK_LOG_ANY 0xFFFF
36
37
// Logging messages - only 32 messages are available to the vehicle here.
38
enum log_messages {
39
LOG_V_BAR_MSG,
40
LOG_V_POS_MSG,
41
};
42
43