|
|
|
@ -1,9 +1,9 @@
@@ -1,9 +1,9 @@
|
|
|
|
|
/* |
|
|
|
|
Example of AP Lead_Filter library. |
|
|
|
|
Code by Jason Short. 2010 |
|
|
|
|
DIYDrones.com |
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
* Example of AP Lead_Filter library. |
|
|
|
|
* Code by Jason Short. 2010 |
|
|
|
|
* DIYDrones.com |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#include <FastSerial.h> |
|
|
|
|
#include <AP_Common.h> // ArduPilot Mega Common Library |
|
|
|
@ -36,9 +36,9 @@ FastSerialPort3(Serial3); // Telemetry port
@@ -36,9 +36,9 @@ FastSerialPort3(Serial3); // Telemetry port
|
|
|
|
|
// RC Hardware |
|
|
|
|
//////////////////////////////////////////// |
|
|
|
|
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2 |
|
|
|
|
APM_RC_APM2 APM_RC; |
|
|
|
|
APM_RC_APM2 APM_RC; |
|
|
|
|
#else |
|
|
|
|
APM_RC_APM1 APM_RC; |
|
|
|
|
APM_RC_APM1 APM_RC; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
AP_LeadFilter xLeadFilter; // GPS lag filter |
|
|
|
|