Unable to change Airspeed_Cruise

I am trying to change the default airspeed cruise from the default 10ms to 15ms.

I followed the instructions in the AdvancedConfig section of the manual. This is what I pasted into my APM_Cofig.h  file. (see copy of the saved APM-Config.h below)

 

#define AIRSPEED_SENSOR     ENABLED
#define AIRSPEED_CRUISE     15
#define AIRSPEED_RATIO      1.9936

 

The new code  compiles and uploads to the board. I saved the changes and restarted the apm and arduino. However, from what I can see  there have been no changes made.  When I use the SHOW cmnd in the CLI the default values remain, same result if I use Show Settings tab in the APM Planner terminal view.

What I am I doing wrong?

 

Joe

 

/*
READ THIS.  REALLY!  READ THIS.

First, you MUST uncomment the GPS PROTOCOL line below or the code will not compile.
This is because we need you to tell the code which GPS module you're using, so we can load the right libraries.

Second, there is a lot more you can do with configuration options is you want. See the APM manual for all the available options.
*/
//-------------- REQUIRED ------------------
#define GPS_PROTOCOL GPS_PROTOCOL_UBLOX // You must uncommment this line by removing the slashes ("//") in front of the "#" and select either the default (GPS_PROTOCOL_MTK) or one of the following other supported GPS modules if you're using one of them instead:

// Other allowed options include:
// GPS_PROTOCOL_NONE        No GPS attached
// GPS_PROTOCOL_IMU         X-Plane interface or ArduPilot IMU.
// GPS_PROTOCOL_MTK         MediaTek-based GPS.
// GPS_PROTOCOL_UBLOX       UBLOX GPS
// GPS_PROTOCOL_SIRF        SiRF-based GPS in Binary mode.  NOT TESTED
//
//
//----------------OPTIONAL-------------------
//
#define GCS_PROTOCOL            GCS_PROTOCOL_LEGACY
//
// The GCS_PROTOCOL option determines which (if any) ground control station
// protocol will be used.  Must be one of:
//
// GCS_PROTOCOL_NONE        No GCS output
// GCS_PROTOCOL_STANDARD    standard APM protocol
// GCS_PROTOCOL_SPECIAL     special test protocol (?)
// GCS_PROTOCOL_LEGACY      legacy ArduPilot protocol
// GCS_PROTOCOL_XPLANE      HIL simulation ground station
// GCS_PROTOCOL_IMU         ArdiPilot IMU output
// GCS_PROTOCOL_JASON       Jason's special secret GCS protocol
//--------------------------------------------------
//
#define GCS_PORT 0
// This determines which port APM will send telemetery on. The USB port is Port 0, for when you're testing on the ground. The Xbee port is Port 3, for the field and in the air and you want to send telemetery wirelessly
//
//#define SERIAL0_BAUD        115200
//#define SERIAL3_BAUD        57600
// These determine the baudrate for the telemetry port.  Default is 115200bps for Port 3.
//
// -------------------------------------------------
#define AIRSPEED_SENSOR     ENABLED
#define AIRSPEED_CRUISE     15
#define AIRSPEED_RATIO      1.9936


// Are you using an airspeed sensor? Choose DISABLED if not.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…