PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <mathlib/math/filter/LowPassFilter2p.hpp>
#include <px4_platform_common/getopt.h>
#include <uORB/topics/system_power.h>
#include <drivers/airspeed/airspeed.h>
Go to the source code of this file.
Classes | |
class | MEASAirspeed |
Namespaces | |
meas_airspeed | |
Local functions in support of the shell command. | |
Macros | |
#define | I2C_ADDRESS_MS4515DO 0x46 |
#define | I2C_ADDRESS_MS4525DO 0x28 |
7-bit address. More... | |
#define | PATH_MS4525 "/dev/ms4525" |
#define | ADDR_READ_MR 0x00 /* write to this address to start conversion */ |
#define | MEAS_RATE 100 |
#define | MEAS_DRIVER_FILTER_FREQ 1.2f |
#define | CONVERSION_INTERVAL (1000000 / MEAS_RATE) /* microseconds */ |
Enumerations | |
enum | MS_DEVICE_TYPE { DEVICE_TYPE_MS4515 = 4515, DEVICE_TYPE_MS4525 = 4525 } |
Functions | |
__EXPORT int | ms4525_airspeed_main (int argc, char *argv[]) |
int | meas_airspeed::start () |
Attempt to start driver on all available I2C busses. More... | |
int | meas_airspeed::start_bus (int i2c_bus, int address) |
Start the driver on a specific bus. More... | |
int | meas_airspeed::stop () |
Stop the driver. More... | |
int | meas_airspeed::reset () |
Reset the driver. More... | |
static void | meas_airspeed_usage () |
Variables | |
MEASAirspeed * | meas_airspeed::g_dev = nullptr |
#define ADDR_READ_MR 0x00 /* write to this address to start conversion */ |
Definition at line 69 of file ms4525_airspeed.cpp.
#define CONVERSION_INTERVAL (1000000 / MEAS_RATE) /* microseconds */ |
Definition at line 74 of file ms4525_airspeed.cpp.
Referenced by MEASAirspeed::Run().
#define I2C_ADDRESS_MS4515DO 0x46 |
Definition at line 64 of file ms4525_airspeed.cpp.
Referenced by ms4525_airspeed_main().
#define I2C_ADDRESS_MS4525DO 0x28 |
7-bit address.
Depends on the order code (this is for code "I")
Definition at line 65 of file ms4525_airspeed.cpp.
Referenced by ms4525_airspeed_main(), and meas_airspeed::start().
#define MEAS_DRIVER_FILTER_FREQ 1.2f |
Definition at line 73 of file ms4525_airspeed.cpp.
#define MEAS_RATE 100 |
Definition at line 72 of file ms4525_airspeed.cpp.
#define PATH_MS4525 "/dev/ms4525" |
Definition at line 66 of file ms4525_airspeed.cpp.
Referenced by meas_airspeed::reset(), and meas_airspeed::start_bus().
enum MS_DEVICE_TYPE |
Enumerator | |
---|---|
DEVICE_TYPE_MS4515 | |
DEVICE_TYPE_MS4525 |
Definition at line 58 of file ms4525_airspeed.cpp.
|
static |
Definition at line 475 of file ms4525_airspeed.cpp.
References PX4_I2C_BUS_DEFAULT.
Referenced by ms4525_airspeed_main().
int ms4525_airspeed_main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 486 of file ms4525_airspeed.cpp.
References DEVICE_TYPE_MS4515, DEVICE_TYPE_MS4525, I2C_ADDRESS_MS4515DO, I2C_ADDRESS_MS4525DO, meas_airspeed_usage(), PX4_I2C_BUS_DEFAULT, meas_airspeed::reset(), meas_airspeed::start(), meas_airspeed::start_bus(), and meas_airspeed::stop().