PX4 Firmware
PX4 Autopilot Software http://px4.io
fmu.cpp File Reference

Driver/configurator for the PX4 FMU. More...

#include <float.h>
#include <math.h>
#include <board_config.h>
#include <drivers/device/device.h>
#include <drivers/device/i2c.h>
#include <drivers/drv_hrt.h>
#include <drivers/drv_input_capture.h>
#include <drivers/drv_mixer.h>
#include <drivers/drv_pwm_output.h>
#include <lib/cdev/CDev.hpp>
#include <lib/mathlib/mathlib.h>
#include <lib/mixer_module/mixer_module.hpp>
#include <lib/parameters/param.h>
#include <lib/perf/perf_counter.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/log.h>
#include <px4_platform_common/module.h>
#include <uORB/Publication.hpp>
#include <uORB/PublicationMulti.hpp>
#include <uORB/Subscription.hpp>
#include <uORB/SubscriptionCallback.hpp>
#include <uORB/topics/actuator_armed.h>
#include <uORB/topics/actuator_controls.h>
#include <uORB/topics/actuator_outputs.h>
#include <uORB/topics/multirotor_motor_limits.h>
#include <uORB/topics/parameter_update.h>
Include dependency graph for fmu.cpp:

Go to the source code of this file.

Classes

class  PX4FMU
 

Macros

#define PX4FMU_DEVICE_PATH   "/dev/px4fmu"
 

Enumerations

enum  PortMode {
  PORT_MODE_UNSET = 0, PORT_FULL_GPIO, PORT_FULL_PWM, PORT_PWM8,
  PORT_PWM6, PORT_PWM5, PORT_PWM4, PORT_PWM3,
  PORT_PWM2, PORT_PWM1, PORT_PWM3CAP1, PORT_PWM4CAP1,
  PORT_PWM4CAP2, PORT_PWM5CAP1, PORT_PWM2CAP2, PORT_CAPTURE,
  PORT_MODE_UNSET = 0, PORT_FULL_GPIO, PORT_FULL_PWM, PORT_PWM8,
  PORT_PWM6, PORT_PWM5, PORT_PWM4, PORT_PWM3,
  PORT_PWM2, PORT_PWM1, PORT_PWM3CAP1, PORT_PWM4CAP1,
  PORT_PWM4CAP2, PORT_PWM5CAP1, PORT_PWM2CAP2, PORT_CAPTURE
}
 Mode given via CLI. More...
 

Functions

__EXPORT int fmu_main (int argc, char *argv[])
 

Detailed Description

Driver/configurator for the PX4 FMU.

Definition in file fmu.cpp.

Macro Definition Documentation

◆ PX4FMU_DEVICE_PATH

#define PX4FMU_DEVICE_PATH   "/dev/px4fmu"

Definition at line 95 of file fmu.cpp.

Referenced by PX4FMU::test().

Enumeration Type Documentation

◆ PortMode

enum PortMode

Mode given via CLI.

Enumerator
PORT_MODE_UNSET 
PORT_FULL_GPIO 
PORT_FULL_PWM 
PORT_PWM8 
PORT_PWM6 
PORT_PWM5 
PORT_PWM4 
PORT_PWM3 
PORT_PWM2 
PORT_PWM1 
PORT_PWM3CAP1 
PORT_PWM4CAP1 
PORT_PWM4CAP2 
PORT_PWM5CAP1 
PORT_PWM2CAP2 
PORT_CAPTURE 
PORT_MODE_UNSET 
PORT_FULL_GPIO 
PORT_FULL_PWM 
PORT_PWM8 
PORT_PWM6 
PORT_PWM5 
PORT_PWM4 
PORT_PWM3 
PORT_PWM2 
PORT_PWM1 
PORT_PWM3CAP1 
PORT_PWM4CAP1 
PORT_PWM4CAP2 
PORT_PWM5CAP1 
PORT_PWM2CAP2 
PORT_CAPTURE 

Definition at line 72 of file fmu.cpp.

Function Documentation

◆ fmu_main()

__EXPORT int fmu_main ( int  argc,
char *  argv[] 
)

Definition at line 2321 of file fmu.cpp.

References main().

Here is the call graph for this function: