Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/AntennaTracker/config.h
9314 views
1
//
2
#pragma once
3
4
#include "defines.h"
5
6
#ifndef MAV_SYSTEM_ID
7
// use 2 for antenna tracker by default
8
# define MAV_SYSTEM_ID 2
9
#endif
10
11
12
//////////////////////////////////////////////////////////////////////////////
13
// RC Channel definitions
14
//
15
#ifndef CH_YAW
16
# define CH_YAW CH_1 // RC input/output for yaw on channel 1
17
#endif
18
#ifndef CH_PITCH
19
# define CH_PITCH CH_2 // RC input/output for pitch on channel 2
20
#endif
21
22
23
//////////////////////////////////////////////////////////////////////////////
24
// yaw and pitch axis angle range defaults
25
//
26
#ifndef YAW_RANGE_DEFAULT
27
# define YAW_RANGE_DEFAULT 360
28
#endif
29
#ifndef PITCH_MIN_DEFAULT
30
# define PITCH_MIN_DEFAULT -90
31
#endif
32
#ifndef PITCH_MAX_DEFAULT
33
# define PITCH_MAX_DEFAULT 90
34
#endif
35
36
//////////////////////////////////////////////////////////////////////////////
37
// Tracking definitions
38
//
39
#ifndef TRACKING_TIMEOUT_MS
40
# define TRACKING_TIMEOUT_MS 5000 // consider we've lost track of vehicle after 5 seconds with no position update. Used to update armed/disarmed status leds
41
#endif
42
#ifndef TRACKING_TIMEOUT_SEC
43
# define TRACKING_TIMEOUT_SEC 5.0f // consider we've lost track of vehicle after 5 seconds with no position update.
44
#endif
45
#ifndef DISTANCE_MIN_DEFAULT
46
# define DISTANCE_MIN_DEFAULT 5.0f // do not track targets within 5 meters
47
#endif
48
49
//
50
// Logging control
51
//
52
53
// Default logging bitmask
54
#ifndef DEFAULT_LOG_BITMASK
55
# define DEFAULT_LOG_BITMASK \
56
MASK_LOG_ATTITUDE | \
57
MASK_LOG_GPS | \
58
MASK_LOG_RCIN | \
59
MASK_LOG_IMU | \
60
MASK_LOG_RCOUT | \
61
MASK_LOG_COMPASS | \
62
MASK_LOG_CURRENT
63
#endif
64
65
#ifndef AP_TRACKER_SET_HOME_VIA_MISSION_UPLOAD_ENABLED
66
#define AP_TRACKER_SET_HOME_VIA_MISSION_UPLOAD_ENABLED 1
67
#endif
68
69