hi all friendsAirspeed sensor (MPXV5004DP) Worked in (ArduPilotMega 1.02) but the new version (APM 2.012) does not work on test mode !!When I use it like a message to:"airspeed: disabled"Why ?Profile System:1- ArduPilotMega IMU (v 1.4)2- ArduPilot Mega (ATMega1280)3- GPS : GS407 U-Blox5 GPS 4Hz4- XBee Pro 900 RPSMA (900mhz)and5- arduino 0022my APM_Config.h :#define GPS_PROTOCOL GPS_PROTOCOL_UBLOX#define GCS_PROTOCOL GCS_PROTOCOL_LEGACY#define GCS_PORT 3#define SERIAL3_BAUD 57600#define AIRSPEED_SENSOR ENABLED
After testing the change in code I noticed that the airspeed sensor was still enabled even if it was disconnected.
I am testing with a MPXV7002DP Airspeed sensor.
I have changed the code again and now the airspeed sensor is enabled when connected and disabled when not connected.
I have no clue with coding , only a little common savvy. so you are all welcome to shoot me down, but this seems to work so far for me. I only changed the auto detect lines in system.pde as follows
// Autodetect airspeed sensor
if (adc.Ch(AIRSPEED_CH) < 2900) //Air speed sensor not detecting, Changed > 2900 to <2900
{
airspeed_enabled = false; //Air speed sensor not detecting, Changed true to false
}
else
{
airspeed_enabled = true; //Air speed sensor not detecting, Changed false to true
I also had the problem of the airspeed sensor not being detacted and displaying disabled when testing in CLI. I only changed the auto detect lines in system.pde as follows
// Autodetect airspeed sensor
if (adc.Ch(AIRSPEED_CH) > 2900)
{
airspeed_enabled = true;
}
else
{
airspeed_enabled = true;// changed from false to true. Airspeed sensor was not auto detecting.
}
Now the airspeed sensor works all the time.
I will keep testing it to see if it stays that way.
Hi guys. I have the MPX5004DP pressure sensor as well and experienced this same issue. I'm very glad I came accross this thread, thanks for your advices! I have now changed the code by removing the detection test, and the airspeed sensor is now up and running. My only concern is whether the MPX5004 sensor needs to be recalibrated? Or should they output the same measurement data? When testing on ground it looks good though (readings in the interval of 0 to 1.41m/s)
The airspeed sensor is autodetected in APM 2.012. It works on all of ours, so the question is why isn't yours being detected? One thing I note is that you're not using the recommended airspeed sensor (http://store.diydrones.com/Kit_MPXV7002DP_p/kt-mpxv7002dp-01.htm). Where did you get your sensor?
Replies
Thaks all for the great work!!!
Hi All
After testing the change in code I noticed that the airspeed sensor was still enabled even if it was disconnected.
I am testing with a MPXV7002DP Airspeed sensor.
I have changed the code again and now the airspeed sensor is enabled when connected and disabled when not connected.
I have no clue with coding , only a little common savvy. so you are all welcome to shoot me down, but this seems to work so far for me. I only changed the auto detect lines in system.pde as follows
// Autodetect airspeed sensor
if (adc.Ch(AIRSPEED_CH) < 2900) //Air speed sensor not detecting, Changed > 2900 to <2900
{
airspeed_enabled = false; //Air speed sensor not detecting, Changed true to false
}
else
{
airspeed_enabled = true; //Air speed sensor not detecting, Changed false to true
}
Cheers!
John
I also had the problem of the airspeed sensor not being detacted and displaying disabled when testing in CLI. I only changed the auto detect lines in system.pde as follows
// Autodetect airspeed sensor
if (adc.Ch(AIRSPEED_CH) > 2900)
{
airspeed_enabled = true;
}
else
{
airspeed_enabled = true;// changed from false to true. Airspeed sensor was not auto detecting.
}
Now the airspeed sensor works all the time.
I will keep testing it to see if it stays that way.
Thanks for the good work all.
John