mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
49a46e463f
Having the version macro in the config.h and consequently in the main vehicle header means that whenever the version changes we need to compiler the whole vehicle again. This would not be so bad if we weren't also appending the git hash in the version. In this case, whenever we commit to the repository we would need to recompile everything. Move to a separate header that is include only by its users. Then instead of compiling everything we will compile just a few files.
79 lines
2.1 KiB
C
79 lines
2.1 KiB
C
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
//
|
|
#pragma once
|
|
|
|
#include "defines.h"
|
|
|
|
#include "APM_Config.h" // <== THIS INCLUDE, DO NOT EDIT IT. EVER.
|
|
|
|
///
|
|
/// DO NOT EDIT THIS INCLUDE - if you want to make a local change, make that
|
|
/// change in your local copy of APM_Config.h.
|
|
///
|
|
|
|
// Just so that it's completely clear...
|
|
#define ENABLED 1
|
|
#define DISABLED 0
|
|
|
|
// this avoids a very common config error
|
|
#define ENABLE ENABLED
|
|
#define DISABLE DISABLED
|
|
|
|
#ifndef MAV_SYSTEM_ID
|
|
// use 2 for antenna tracker by default
|
|
# define MAV_SYSTEM_ID 2
|
|
#endif
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// RC Channel definitions
|
|
//
|
|
#ifndef CH_YAW
|
|
# define CH_YAW CH_1 // RC input/output for yaw on channel 1
|
|
#endif
|
|
#ifndef CH_PITCH
|
|
# define CH_PITCH CH_2 // RC input/output for pitch on channel 2
|
|
#endif
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// yaw and pitch axis angle range defaults
|
|
//
|
|
#ifndef YAW_RANGE_DEFAULT
|
|
# define YAW_RANGE_DEFAULT 360
|
|
#endif
|
|
#ifndef PITCH_RANGE_DEFAULT
|
|
# define PITCH_RANGE_DEFAULT 180
|
|
#endif
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
// Tracking definitions
|
|
//
|
|
#ifndef TRACKING_TIMEOUT_MS
|
|
# 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
|
|
#endif
|
|
#ifndef TRACKING_TIMEOUT_SEC
|
|
# define TRACKING_TIMEOUT_SEC 5.0f // consider we've lost track of vehicle after 5 seconds with no position update.
|
|
#endif
|
|
#ifndef DISTANCE_MIN_DEFAULT
|
|
# define DISTANCE_MIN_DEFAULT 5.0f // do not track targets within 5 meters
|
|
#endif
|
|
|
|
//
|
|
// Dataflash logging control
|
|
//
|
|
#ifndef LOGGING_ENABLED
|
|
# define LOGGING_ENABLED ENABLED
|
|
#endif
|
|
|
|
// Default logging bitmask
|
|
#ifndef DEFAULT_LOG_BITMASK
|
|
# define DEFAULT_LOG_BITMASK \
|
|
MASK_LOG_ATTITUDE | \
|
|
MASK_LOG_GPS | \
|
|
MASK_LOG_RCIN | \
|
|
MASK_LOG_IMU | \
|
|
MASK_LOG_RCOUT | \
|
|
MASK_LOG_COMPASS
|
|
#endif
|