Firmware
Functions | Variables
test_sensors.c File Reference

Tests the onboard sensors. More...

#include <px4_time.h>
#include <px4_config.h>
#include <px4_posix.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <math.h>
#include <systemlib/err.h>
#include <arch/board/board.h>
#include "tests_main.h"
#include <drivers/drv_gyro.h>
#include <drivers/drv_accel.h>
#include <drivers/drv_mag.h>
#include <drivers/drv_baro.h>

Functions

int test_sensors (int argc, char *argv[])
 

Variables

struct {
   const char *   name
 
   const char *   path
 
   int(*   test )(int argc, char *argv[],
      const char *path)
 
sensors []
 

Detailed Description

Tests the onboard sensors.

Author
Lorenz Meier lm@in.nosp@m.f.et.nosp@m.hz.ch

Variable Documentation

§ sensors

struct { ... } sensors[]
Initial value:
= {
{"accel0", "/dev/accel0", accel},
{"accel1", "/dev/accel1", accel},
{"gyro0", "/dev/gyro0", gyro},
{"gyro1", "/dev/gyro1", gyro},
{"mag0", MAG0_DEVICE_PATH, mag},
{"baro0", BARO0_DEVICE_PATH, baro},
{NULL, NULL, NULL}
}