PX4 Firmware
PX4 Autopilot Software http://px4.io
config.c File Reference
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/module.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <arch/board/board.h>
#include <drivers/drv_gyro.h>
#include <drivers/drv_accel.h>
#include <drivers/drv_mag.h>
#include <drivers/drv_device.h>
#include <parameters/param.h>
Include dependency graph for config.c:

Go to the source code of this file.

Functions

__EXPORT int config_main (int argc, char *argv[])
 
static int do_gyro (int argc, char *argv[])
 
static int do_accel (int argc, char *argv[])
 
static int do_mag (int argc, char *argv[])
 
static int do_device (int argc, char *argv[])
 
static void print_usage (void)
 

Detailed Description

Author
Lorenz Meier lm@in.nosp@m.f.et.nosp@m.hz.ch
Julian Oes joes@.nosp@m.stud.nosp@m.ent.e.nosp@m.thz..nosp@m.ch

config tool. Takes the device name as the first parameter.

Definition in file config.c.

Function Documentation

◆ config_main()

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

Definition at line 72 of file config.c.

References do_accel(), do_device(), do_gyro(), do_mag(), and print_usage().

Here is the call graph for this function:

◆ do_accel()

static int do_accel ( int  argc,
char *  argv[] 
)
static

Definition at line 265 of file config.c.

References fd, param_find(), param_get(), print_usage(), and SENSORIOCSPOLLRATE.

Referenced by config_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_device()

static int do_device ( int  argc,
char *  argv[] 
)
static

Definition at line 118 of file config.c.

References fd, and print_usage().

Referenced by config_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_gyro()

static int do_gyro ( int  argc,
char *  argv[] 
)
static

Definition at line 167 of file config.c.

References fd, param_find(), param_get(), print_usage(), and SENSORIOCSPOLLRATE.

Referenced by config_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_mag()

static int do_mag ( int  argc,
char *  argv[] 
)
static

Definition at line 211 of file config.c.

References fd, MAGIOCSRANGE, param_find(), param_get(), print_usage(), and SENSORIOCSPOLLRATE.

Referenced by config_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_usage()

static void print_usage ( void  )
static

Definition at line 95 of file config.c.

Referenced by config_main(), do_accel(), do_device(), do_gyro(), and do_mag().

Here is the caller graph for this function: