|
PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <px4_platform_common/px4_config.h>#include <px4_platform_common/tasks.h>#include <px4_platform_common/posix.h>#include <px4_platform_common/getopt.h>#include <px4_platform_common/defines.h>#include <px4_platform_common/log.h>#include <px4_platform_common/module.h>#include <px4_platform_common/cli.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdbool.h>#include <unistd.h>#include <fcntl.h>#include <poll.h>#include <sys/ioctl.h>#include <sys/stat.h>#include <arch/board/board.h>#include "systemlib/err.h"#include <parameters/param.h>#include "drivers/drv_pwm_output.h"Go to the source code of this file.
Functions | |
| static void | usage (const char *reason) |
| __BEGIN_DECLS __EXPORT int | pwm_main (int argc, char *argv[]) |
| int pwm_main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 161 of file pwm.cpp.
References pwm_output_values::channel_count, command, err, fd, idle, OK, PWM_OUTPUT0_DEVICE_PATH, PWM_OUTPUT_MAX_CHANNELS, PWM_SERVO_ARM, PWM_SERVO_DISARM, PWM_SERVO_ENTER_TEST_MODE, PWM_SERVO_EXIT_TEST_MODE, PWM_SERVO_GET, PWM_SERVO_GET_COUNT, PWM_SERVO_GET_DEFAULT_UPDATE_RATE, PWM_SERVO_GET_DISARMED_PWM, PWM_SERVO_GET_FAILSAFE_PWM, PWM_SERVO_GET_MAX_PWM, PWM_SERVO_GET_MIN_PWM, PWM_SERVO_GET_RATEGROUP, PWM_SERVO_GET_SELECT_UPDATE_RATE, PWM_SERVO_GET_TRIM_PWM, PWM_SERVO_GET_UPDATE_RATE, PWM_SERVO_SET, PWM_SERVO_SET_ARM_OK, PWM_SERVO_SET_DISARMED_PWM, PWM_SERVO_SET_FAILSAFE_PWM, PWM_SERVO_SET_FORCE_FAILSAFE, PWM_SERVO_SET_MAX_PWM, PWM_SERVO_SET_MIN_PWM, PWM_SERVO_SET_MODE, PWM_SERVO_SET_SELECT_UPDATE_RATE, PWM_SERVO_SET_TERMINATION_FAILSAFE, PWM_SERVO_SET_UPDATE_RATE, px4_ioctl(), px4_open(), read(), up_pwm_update(), usage(), and pwm_output_values::values.
|
static |
Definition at line 76 of file pwm.cpp.
Referenced by pwm_main().