PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Test for the analog to digital converter. More...
#include <px4_platform_common/time.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/posix.h>
#include <px4_platform_common/log.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include "tests_main.h"
#include <drivers/drv_adc.h>
Go to the source code of this file.
Functions | |
int | test_adc (int argc, char *argv[]) |
Test for the analog to digital converter.
Definition in file test_adc.c.
int test_adc | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 56 of file test_adc.c.
References ADC0_DEVICE_PATH, data, fd, OK, px4_adc_msg_t, px4_close(), PX4_MAX_ADC_CHANNELS, px4_open(), and px4_read().