PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <stdint.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <px4_platform_common/tasks.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/getopt.h>
#include <uORB/uORB.h>
#include <uORB/topics/parameter_update.h>
#include <drivers/drv_accel.h>
#include <drivers/drv_gyro.h>
#include <drivers/drv_mag.h>
#include <drivers/drv_hrt.h>
#include <semaphore.h>
#include <mpu9x50.h>
Go to the source code of this file.
Namespaces | |
mpu9x50 | |
Macros | |
#define | MAX_LEN_DEV_PATH 32 |
#define | SPI_INT_GPIO 65 |
Functions | |
__EXPORT int | mpu9x50_main (int argc, char *argv[]) |
driver 'main' command More... | |
static void | mpu9x50::usage () |
Print out the usage information. More... | |
static void | mpu9x50::stop () |
mpu9x50 stop measurement More... | |
static void | mpu9x50::task_main_trampoline (int argc, char *argv[]) |
task main trampoline function More... | |
static void | mpu9x50::task_main (int argc, char *argv[]) |
mpu9x50 measurement thread primary entry point More... | |
static bool | mpu9x50::create_pubs () |
create and advertise all publicatoins More... | |
static void | mpu9x50::update_reports () |
update all sensor reports with the latest sensor reading More... | |
static void | mpu9x50::publish_reports () |
publish all sensor reports More... | |
static void | mpu9x50::parameters_update () |
update all parameters More... | |
static void | mpu9x50::parameters_init () |
initialize all parameter handles and load the initial parameter values More... | |
static void | mpu9x50::parameter_update_poll () |
poll parameter update More... | |
static void * | mpu9x50::data_ready_isr (void *context) |
MPU9x50 data ready interrupt service routine. More... | |
void | mpu9x50::start () |
Attempt to start driver on all available I2C busses. More... | |
#define MAX_LEN_DEV_PATH 32 |
Definition at line 70 of file mpu9x50_main.cpp.
Referenced by mpu9x50_main().
#define SPI_INT_GPIO 65 |
Definition at line 73 of file mpu9x50_main.cpp.
Referenced by mpu9x50::task_main().
int mpu9x50_main | ( | int | argc, |
char * | argv[] | ||
) |
driver 'main' command
Definition at line 603 of file mpu9x50_main.cpp.
References mpu9x50::_device, mpu9x50::_is_running, MAX_LEN_DEV_PATH, mpu9x50::start(), mpu9x50::stop(), and mpu9x50::usage().