折返的Liung

我如溪水,静静流淌在山涧~~我如白云,俯瞰此生今生~~

APM-Combo4

//-------------------------------------
#define GPS_PROTOCOL GPS_PROTOCOL_MTK
//   *AVAILABLE OPTIONS*
// GPS_PROTOCOL_NONENo GPS attached
// GPS_PROTOCOL_IMU X-Plane interface or ArduPilot IMU.
// GPS_PROTOCOL_MTK MediaTek-based GPS.
// GPS_PROTOCOL_MTK16   MediaTek GPS with firmware 1.6
// GPS_PROTOCOL_UBLOX   UBLOX GPS
// GPS_PROTOCOL_SIRFSiRF-based GPS in Binary mode.  NOT TESTED
//-------------------------------------
#define AIRSPEED_SENSOR ENABLED
//   *AVAILABLE OPTIONS*
//  #define AIRSPEED_SENSOR DISABLED
//  #define AIRSPEED_SENSOR ENABLED
//-------------------------------------
#define SERIAL3_BAUD   57600
//   *AVAILABLE SPEED OPTIONS*   NOTE: When choosing a speed for APM, you need to configure your Xbee modules and GCS for that same speed)
//  #define SERIAL3_BAUD   9600  
//  #define SERIAL3_BAUD   19200  
//  #define SERIAL3_BAUD   38400
//  #define SERIAL3_BAUD   57600
//  #define SERIAL3_BAUD   115200
//-------------------------------------
#define GCS_PORT  3 
// *AVAILABLE OPTIONS*
// #  define GCS_PORT    0  (APM will send information through the mini usb port) 
// #  define GCS_PORT    3  (APM will send information through the Telemport to be sent wirelessly by Xbee module)
//
//--------------------------------------
#define GCS_PROTOCOL GCS_PROTOCOL_LEGACY
//
// *AVAILABLE OPTIONS* 
// GCS_PROTOCOL_NONE  No GCS output
// GCS_PROTOCOL_STANDARD  standard APM protocol
// GCS_PROTOCOL_SPECIAL   special test protocol (?)
// GCS_PROTOCOL_LEGACYlegacy ArduPilot protocol
// GCS_PROTOCOL_XPLANEHIL simulation ground station
// GCS_PROTOCOL_IMU   ArdiPilot IMU output
// GCS_PROTOCOL_JASON Jason's special secret GCS
//
//--------------------------------------
#define BATTERY_EVENT ENABLED
//   
//*AVAILABLE OPTIONS*
// #define BATTERY_EVENT  ENABLED
// #define BATTERY_EVENT  DISABLED
//
//---------------------------------------
#define BATTERY_TYPE  1 
//
//*AVAILABLE OPTIONS*
//  #define BATTERY_TYPE 1
//  #define BATTERY_TYPE 0
//
//---------------------------------------
#define LOW_VOLTAGE  11.4  
//
//*AVAILABLE OPTIONS*
//  What ever you consider as a low voltage
//
//---------------------------------------
#define INPUT_VOLTAGE 5.0 
//
//*AVAILABE OPTIONS*
//   The default value is 5.0 measure for other input value
//
//---------------------------------------
#define VOLT_DIV_RATIO  3.0 
//
//*AVAILABLE OPTIONS*

链接

  1. APM官网原文链接
  2. APM开发人员参考手册目录列表

(over)

APM

Comments