#include <inttypes.h>#include "pid.h"#include "uart.h"#include "hardware.h"#include "kalman.h"#include "comm_util_LL.h"

Go to the source code of this file.
| #define CMD_MAX_PERIOD 100 |
| #define LAND_THRUST_DECREASE_PERIOD 1 |
| #define LAND_THRUST_DECREASE_STEP 0.01 |
| #define WP_CMD_ABORT 0x06 |
| #define WP_CMD_GOHOME 0x04 |
| #define WP_CMD_LAND 0x03 |
| #define WP_CMD_LAUNCH 0x02 |
| #define WP_CMD_SETHOME 0x05 |
| #define WP_CMD_SINGLE_WP 0x01 |
| #define WP_NAVSTAT_20M 0x04 |
| #define WP_NAVSTAT_PILOT_ABORT 0x08 |
| #define WP_NAVSTAT_REACHED_POS 0x01 |
| #define WP_NAVSTAT_REACHED_POS_TIME 0x02 |
| #define WPPROP_ABSCOORDS 0x01 |
| #define WPPROP_AUTOMATICGOTO 0x10 |
| #define WPPROP_HEIGHTENABLED 0x02 |
| #define WPPROP_YAWENABLED 0x04 |
| int checkTxPeriod | ( | uint16_t | period, |
| uint16_t | phase | ||
| ) | [inline] |
| void estop | ( | void | ) | [inline] |
| void feedbackBeep | ( | void | ) | [inline] |
| unsigned short isSerialEnabled | ( | void | ) | [inline] |
| void processEngageDisengageTimeouts | ( | void | ) | [inline] |
| void processFlightActionRequests | ( | void | ) | [inline] |
| void processLandingThrust | ( | void | ) | [inline] |
| void processMotorCommands | ( | void | ) | [inline] |
| void processMotorStateChanges | ( | void | ) | [inline] |
| void processSendData | ( | void | ) | [inline] |
| void SDK_mainloop | ( | void | ) |
SDK_mainloop(void) is triggered @ 1kHz.
WO_(Write Only) data is written to the LL processor after execution of this function.
RO_(Read Only) data is updated before entering this function and can be read to obtain information for supervision or control
WO_ and RO_ structs are defined in sdk.h
The struct LL_1khz_attitude_data (defined in LL_HL_comm.h) can be used to read all sensor data, results of the data fusion and R/C inputs transmitted from the LL-processor. This struct is automatically updated at 1 kHz.
| void sendCtrlDebugData | ( | void | ) | [inline] |
| void sendFlightStateData | ( | void | ) | [inline] |
| void sendImuData | ( | void | ) | [inline] |
| void sendMavPoseData | ( | void | ) | [inline] |
| void sendRcData | ( | void | ) | [inline] |
| void sendStatusData | ( | void | ) | [inline] |
| void synchronizeTime | ( | void | ) | [inline] |
| void writeCommand | ( | short | pitch, |
| short | roll, | ||
| short | yaw, | ||
| short | thrust, | ||
| short | ctrl, | ||
| short | enable | ||
| ) | [inline] |
| struct RO_ALL_DATA RO_ALL_Data |
| struct RO_RC_DATA RO_RC_Data |
| struct WO_CTRL_INPUT WO_CTRL_Input |
| struct WO_SDK_STRUCT WO_SDK |
| unsigned char wpCtrlAckTrigger |
Definition at line 48 of file LL_HL_comm.c.
| unsigned short wpCtrlDistToWp |
Definition at line 51 of file LL_HL_comm.c.
| unsigned short wpCtrlNavStatus |
Definition at line 50 of file LL_HL_comm.c.
| unsigned char wpCtrlWpCmd |
Definition at line 45 of file LL_HL_comm.c.
| unsigned char wpCtrlWpCmdUpdated |
Definition at line 46 of file LL_HL_comm.c.
Definition at line 53 of file LL_HL_comm.c.