Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Rover/config.h
9660 views
1
#pragma once
2
3
#include "defines.h"
4
5
#ifndef MAV_SYSTEM_ID
6
#define MAV_SYSTEM_ID 1
7
#endif
8
9
//////////////////////////////////////////////////////////////////////////////
10
// FrSky telemetry support
11
//
12
13
#ifndef CH7_OPTION
14
#define CH7_OPTION CH7_SAVE_WP
15
#endif
16
17
//////////////////////////////////////////////////////////////////////////////
18
// MODE
19
// MODE_CHANNEL
20
//
21
#ifndef MODE_CHANNEL
22
#define MODE_CHANNEL 8
23
#endif
24
#if (MODE_CHANNEL != 5) && (MODE_CHANNEL != 6) && (MODE_CHANNEL != 7) && (MODE_CHANNEL != 8)
25
#error XXX
26
#error XXX You must set MODE_CHANNEL to 5, 6, 7 or 8
27
#error XXX
28
#endif
29
30
//////////////////////////////////////////////////////////////////////////////
31
// NAVL1
32
//
33
#ifndef NAVL1
34
#define NAVL1_PERIOD 8
35
#endif
36
37
//////////////////////////////////////////////////////////////////////////////
38
// CRUISE_SPEED default
39
//
40
#ifndef CRUISE_SPEED
41
#define CRUISE_SPEED 2 // in m/s
42
#endif
43
44
#define DEFAULT_LOG_BITMASK 0xffff
45
46
//////////////////////////////////////////////////////////////////////////////
47
// Dock mode - allows vehicle to dock to a docking target
48
#ifndef MODE_DOCK_ENABLED
49
# define MODE_DOCK_ENABLED AC_PRECLAND_ENABLED
50
#endif
51
52
//////////////////////////////////////////////////////////////////////////////
53
// Follow mode - allows vehicle to follow target
54
#ifndef MODE_FOLLOW_ENABLED
55
# define MODE_FOLLOW_ENABLED AP_FOLLOW_ENABLED
56
#endif
57
58
59
//////////////////////////////////////////////////////////////////////////////
60
// Developer Items
61
//
62
63
// if RESET_SWITCH_CH is not zero, then this is the PWM value on
64
// that channel where we reset the control mode to the current switch
65
// position (to for example return to switched mode after failsafe or
66
// fence breach)
67
#ifndef RESET_SWITCH_CHAN_PWM
68
#define RESET_SWITCH_CHAN_PWM 1750
69
#endif
70
71
#ifndef AP_ROVER_ADVANCED_FAILSAFE_ENABLED
72
#define AP_ROVER_ADVANCED_FAILSAFE_ENABLED 0
73
#endif
74
75
#ifndef AP_ROVER_AUTO_ARM_ONCE_ENABLED
76
#define AP_ROVER_AUTO_ARM_ONCE_ENABLED 1
77
#endif
78
79