sdk.h File Reference
#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 Documentation
#define CMD_MAX_PERIOD 100 |
Definition at line 43 of file sdk.h.
#define LAND_THRUST_DECREASE_PERIOD 1 |
Definition at line 46 of file sdk.h.
#define LAND_THRUST_DECREASE_STEP 0.01 |
Definition at line 45 of file sdk.h.
Function Documentation
int checkTxPeriod |
( |
uint16_t |
period, |
|
|
uint16_t |
phase | |
|
) |
| | [inline] |
gets called every sdk loops. Currently, only checks for packets from the PC and starts autobaud in case there wwas no communication in the last 10 s
checks if a packet has to be sent
Definition at line 401 of file sdk.c.
void estop |
( |
void |
|
) |
[inline] |
void feedbackBeep |
( |
void |
|
) |
[inline] |
unsigned short isSerialEnabled |
( |
void |
|
) |
[inline] |
void processEngageDisengageTimeouts |
( |
void |
|
) |
[inline] |
void processFlightActionRequests |
( |
void |
|
) |
[inline] |
void processKF |
( |
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.
Definition at line 178 of file sdk.c.
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] |
adjusts HLP time to host PC time
Definition at line 333 of file sdk.c.
void writeCommand |
( |
short |
pitch, |
|
|
short |
roll, |
|
|
short |
yaw, |
|
|
short |
thrust, |
|
|
short |
ctrl, |
|
|
short |
enable | |
|
) |
| | [inline] |
Variable Documentation
Definition at line 49 of file sdk.c.
Definition at line 48 of file sdk.c.
Definition at line 50 of file sdk.c.
Definition at line 47 of file sdk.c.