PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <board_config.h>
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | RunReq |
struct | RunInfoRepsonse |
struct | ConfigInfoBasicRequest |
struct | ConfigInfoBasicResponse |
struct | InfoRequest |
struct | EscPacket |
struct | ESC_UART_BUF |
Macros | |
#define | TAP_ESC_DEVICE_PATH "/dev/tap_esc" |
#define | ESC_HAVE_CURRENT_SENSOR |
#define | TAP_ESC_MAX_PACKET_LEN 20 |
#define | TAP_ESC_MAX_MOTOR_NUM 8 |
#define | PACKET_HEAD 0xfe |
#define | ESC_POS {0, 1, 4, 3, 2, 5, 7, 8} |
#define | ESC_DIR {0, 1, 0, 1, 0, 1, 0, 1} |
#define | RPMMAX 1900 |
#define | RPMMIN 1200 |
#define | RPMSTOPPED (RPMMIN - 10) |
#define | MAX_BOOT_TIME_MS (550) |
#define | RUN_CHANNEL_VALUE_MASK (uint16_t)0x07ff |
#define | RUN_RED_LED_ON_MASK (uint16_t)0x0800 |
#define | RUN_GREEN_LED_ON_MASK (uint16_t)0x1000 |
#define | RUN_BLUE_LED_ON_MASK (uint16_t)0x2000 |
#define | RUN_LED_ON_MASK (uint16_t)0x3800 |
#define | RUN_FEEDBACK_ENABLE_MASK (uint16_t)0x4000 |
#define | RUN_REVERSE_MASK (uint16_t)0x8000 |
#define | ESC_MASK_MAP_CHANNEL 0x0f |
#define | ESC_MASK_MAP_RUNNING_DIRECTION 0xf0 |
#define | UART_BUFFER_SIZE 128 |
#define ESC_DIR {0, 1, 0, 1, 0, 1, 0, 1} |
Definition at line 69 of file drv_tap_esc.h.
#define ESC_HAVE_CURRENT_SENSOR |
Definition at line 43 of file drv_tap_esc.h.
#define ESC_MASK_MAP_CHANNEL 0x0f |
Definition at line 126 of file drv_tap_esc.h.
Referenced by TAP_ESC::init().
#define ESC_MASK_MAP_RUNNING_DIRECTION 0xf0 |
Definition at line 127 of file drv_tap_esc.h.
Referenced by TAP_ESC::init().
#define ESC_POS {0, 1, 4, 3, 2, 5, 7, 8} |
Definition at line 67 of file drv_tap_esc.h.
#define MAX_BOOT_TIME_MS (550) |
Definition at line 76 of file drv_tap_esc.h.
Referenced by TAP_ESC::init().
#define PACKET_HEAD 0xfe |
Definition at line 48 of file drv_tap_esc.h.
Referenced by TAP_ESC::init(), tap_esc_common::parse_tap_esc_feedback(), and TAP_ESC::send_esc_outputs().
#define RPMMAX 1900 |
Definition at line 71 of file drv_tap_esc.h.
Referenced by TAP_ESC::cycle(), TAP_ESC::init(), and TAP_ESC::send_esc_outputs().
#define RPMMIN 1200 |
Definition at line 72 of file drv_tap_esc.h.
Referenced by TAP_ESC::cycle(), and TAP_ESC::init().
#define RPMSTOPPED (RPMMIN - 10) |
Definition at line 73 of file drv_tap_esc.h.
Referenced by TAP_ESC::cycle(), and TAP_ESC::send_esc_outputs().
#define RUN_BLUE_LED_ON_MASK (uint16_t)0x2000 |
Definition at line 85 of file drv_tap_esc.h.
Referenced by TAP_ESC::send_esc_outputs().
#define RUN_CHANNEL_VALUE_MASK (uint16_t)0x07ff |
Definition at line 82 of file drv_tap_esc.h.
#define RUN_FEEDBACK_ENABLE_MASK (uint16_t)0x4000 |
Definition at line 87 of file drv_tap_esc.h.
Referenced by TAP_ESC::send_esc_outputs().
#define RUN_GREEN_LED_ON_MASK (uint16_t)0x1000 |
Definition at line 84 of file drv_tap_esc.h.
#define RUN_LED_ON_MASK (uint16_t)0x3800 |
Definition at line 86 of file drv_tap_esc.h.
#define RUN_RED_LED_ON_MASK (uint16_t)0x0800 |
Definition at line 83 of file drv_tap_esc.h.
#define RUN_REVERSE_MASK (uint16_t)0x8000 |
Definition at line 88 of file drv_tap_esc.h.
#define TAP_ESC_DEVICE_PATH "/dev/tap_esc" |
Definition at line 40 of file drv_tap_esc.h.
#define TAP_ESC_MAX_MOTOR_NUM 8 |
Definition at line 46 of file drv_tap_esc.h.
Referenced by TAP_ESC::cycle(), and TAP_ESC::send_esc_outputs().
#define TAP_ESC_MAX_PACKET_LEN 20 |
Definition at line 45 of file drv_tap_esc.h.
#define UART_BUFFER_SIZE 128 |
Definition at line 163 of file drv_tap_esc.h.
Referenced by tap_esc_common::parse_tap_esc_feedback(), and tap_esc_common::read_data_from_uart().
Definition at line 198 of file drv_tap_esc.h.
Definition at line 212 of file drv_tap_esc.h.
enum InfoTypes |
Enumerator | |
---|---|
REQUEST_INFO_BASIC | |
REQUEST_INFO_FUll | |
REQUEST_INFO_RUN | |
REQUEST_INFO_STUDY | |
REQUEST_INFO_COMM | |
REQUEST_INFO_DEVICE |
Definition at line 131 of file drv_tap_esc.h.
enum PARSR_ESC_STATE |
Enumerator | |
---|---|
HEAD | |
LEN | |
ID | |
DATA | |
CRC |
Definition at line 243 of file drv_tap_esc.h.