diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-23 16:55:42 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-23 16:55:42 +0200 |
commit | f7a40c5c6dcccf0ad14e97ef7fe1e426230e6e01 (patch) | |
tree | 1f3a68e306c2f960c4930ef39ba39996aff9bdd4 /src | |
parent | 1fdc666bb0be393f048c85b1827494beedff0426 (diff) | |
download | px4-firmware-f7a40c5c6dcccf0ad14e97ef7fe1e426230e6e01.tar.gz px4-firmware-f7a40c5c6dcccf0ad14e97ef7fe1e426230e6e01.tar.bz2 px4-firmware-f7a40c5c6dcccf0ad14e97ef7fe1e426230e6e01.zip |
Improve I2C address comment. Make filter much stronger to damp any non-realistic vehicle motion.
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/meas_airspeed/meas_airspeed.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/meas_airspeed/meas_airspeed.cpp b/src/drivers/meas_airspeed/meas_airspeed.cpp index 6ab437716..118c35960 100644 --- a/src/drivers/meas_airspeed/meas_airspeed.cpp +++ b/src/drivers/meas_airspeed/meas_airspeed.cpp @@ -92,7 +92,7 @@ #include <drivers/airspeed/airspeed.h> /* I2C bus address is 1010001x */ -#define I2C_ADDRESS_MS4525DO 0x28 //0x51 /* 7-bit address. */ +#define I2C_ADDRESS_MS4525DO 0x28 /**< 7-bit address. Depends on the order code (this is for code "I") */ #define PATH_MS4525 "/dev/ms4525" /* The MS5525DSO address is 111011Cx, where C is the complementary value of the pin CSB */ #define I2C_ADDRESS_MS5525DSO 0x77 //0x77/* 7-bit address, addr. pin pulled low */ @@ -102,9 +102,9 @@ #define ADDR_READ_MR 0x00 /* write to this address to start conversion */ /* Measurement rate is 100Hz */ -#define MEAS_RATE 100.0f -#define MEAS_DRIVER_FILTER_FREQ 3.0f -#define CONVERSION_INTERVAL (1000000 / 100) /* microseconds */ +#define MEAS_RATE 100 +#define MEAS_DRIVER_FILTER_FREQ 0.5f +#define CONVERSION_INTERVAL (1000000 / MEAS_RATE) /* microseconds */ class MEASAirspeed : public Airspeed { |