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