|
Firmware
|
#include <px4_config.h>#include <sys/types.h>#include <stdint.h>#include <stdlib.h>#include <stdbool.h>#include <semaphore.h>#include <string.h>#include <fcntl.h>#include <poll.h>#include <errno.h>#include <stdio.h>#include <math.h>#include <unistd.h>#include <systemlib/err.h>#include <parameters/param.h>#include <perf/perf_counter.h>#include <mathlib/math/filter/LowPassFilter2p.hpp>#include <drivers/drv_airspeed.h>#include <drivers/drv_hrt.h>#include <uORB/uORB.h>#include <uORB/topics/differential_pressure.h>#include <uORB/topics/system_power.h>#include "airspeedsim.h"Classes | |
| class | MEASAirspeedSim |
Namespaces | |
| meas_airspeed_sim | |
| Local functions in support of the shell command. | |
Macros | |
| #define | I2C_ADDRESS_MS4525DO 0x28 |
| 7-bit address. More... | |
| #define | PATH_MS4525 "/dev/ms4525" |
| #define | I2C_ADDRESS_MS5525DSO 0x77 |
| #define | PATH_MS5525 "/dev/ms5525" |
| #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 */ |
Functions | |
| __EXPORT int | measairspeedsim_main (int argc, char *argv[]) |
| int | meas_airspeed_sim::start (int i2c_bus) |
| Start the driver. More... | |
| int | meas_airspeed_sim::stop () |
| Stop the driver. More... | |
| int | meas_airspeed_sim::test () |
| Perform some basic functional tests on the driver; make sure we can collect data from the sensor in polled and automatic modes. | |
| int | meas_airspeed_sim::reset () |
| Reset the driver. More... | |
| int | meas_airspeed_sim::info () |
| Print a little info about the driver. More... | |
Variables | |
| MEASAirspeedSim * | meas_airspeed_sim::g_dev = nullptr |
Driver for a simulated airspeed sensor.
| #define I2C_ADDRESS_MS4525DO 0x28 |
7-bit address.
Depends on the order code (this is for code "I")
1.8.12