PX4 Firmware
PX4 Autopilot Software http://px4.io
dshot.cpp File Reference
#include <float.h>
#include <math.h>
#include <board_config.h>
#include <drivers/device/device.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_arch/dshot.h>
#include <px4_platform_common/atomic.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 <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#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 <uORB/topics/esc_status.h>
#include "telemetry.h"
Include dependency graph for dshot.cpp:

Go to the source code of this file.

Classes

class  DShotOutput
 
struct  DShotOutput::Command
 
struct  DShotOutput::Telemetry
 

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 dshot_main (int argc, char *argv[])
 

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 dshot.cpp.

Function Documentation

◆ dshot_main()

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

Definition at line 1675 of file dshot.cpp.

References main().

Here is the call graph for this function: