forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.h
77 lines (62 loc) · 1.9 KB
/
config.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#pragma once
#include "defines.h"
#ifndef MAV_SYSTEM_ID
#define MAV_SYSTEM_ID 1
#endif
#ifndef ARM_DELAY_MS
#define ARM_DELAY_MS 2000
#endif
//////////////////////////////////////////////////////////////////////////////
// FrSky telemetry support
//
#ifndef CH7_OPTION
#define CH7_OPTION CH7_SAVE_WP
#endif
//////////////////////////////////////////////////////////////////////////////
// MODE
// MODE_CHANNEL
//
#ifndef MODE_CHANNEL
#define MODE_CHANNEL 8
#endif
#if (MODE_CHANNEL != 5) && (MODE_CHANNEL != 6) && (MODE_CHANNEL != 7) && (MODE_CHANNEL != 8)
#error XXX
#error XXX You must set MODE_CHANNEL to 5, 6, 7 or 8
#error XXX
#endif
//////////////////////////////////////////////////////////////////////////////
// NAVL1
//
#ifndef NAVL1
#define NAVL1_PERIOD 8
#endif
//////////////////////////////////////////////////////////////////////////////
// CRUISE_SPEED default
//
#ifndef CRUISE_SPEED
#define CRUISE_SPEED 2 // in m/s
#endif
#define DEFAULT_LOG_BITMASK 0xffff
//////////////////////////////////////////////////////////////////////////////
// Dock mode - allows vehicle to dock to a docking target
#ifndef MODE_DOCK_ENABLED
# define MODE_DOCK_ENABLED AC_PRECLAND_ENABLED
#endif
//////////////////////////////////////////////////////////////////////////////
// Follow mode - allows vehicle to follow target
#ifndef MODE_FOLLOW_ENABLED
# define MODE_FOLLOW_ENABLED AP_FOLLOW_ENABLED
#endif
//////////////////////////////////////////////////////////////////////////////
// Developer Items
//
// if RESET_SWITCH_CH is not zero, then this is the PWM value on
// that channel where we reset the control mode to the current switch
// position (to for example return to switched mode after failsafe or
// fence breach)
#ifndef RESET_SWITCH_CHAN_PWM
#define RESET_SWITCH_CHAN_PWM 1750
#endif
#ifndef AP_ROVER_ADVANCED_FAILSAFE_ENABLED
#define AP_ROVER_ADVANCED_FAILSAFE_ENABLED 0
#endif