33 #include "pprzlink/messages.h"
34 #include "pprzlink/intermcu_msg.h"
43 #ifndef FORWARD_IMAGE_DATA
44 #define FORWARD_IMAGE_DATA FALSE
66 #if !defined(STEREO_BODY_TO_STEREO_PHI) || !defined(STEREO_BODY_TO_STEREO_THETA) || !defined(STEREO_BODY_TO_STEREO_PSI)
67 #pragma message "STEREO_BODY_TO_STEREO_XXX not defined. Using default Euler rotation angles (0,0,0)"
70 #ifndef STEREO_BODY_TO_STEREO_PHI
71 #define STEREO_BODY_TO_STEREO_PHI 0
74 #ifndef STEREO_BODY_TO_STEREO_THETA
75 #define STEREO_BODY_TO_STEREO_THETA 0
78 #ifndef STEREO_BODY_TO_STEREO_PSI
79 #define STEREO_BODY_TO_STEREO_PSI 0
88 #ifndef STEREOCAM_USE_MEDIAN_FILTER
89 #define STEREOCAM_USE_MEDIAN_FILTER 0
115 case DL_STEREOCAM_VELOCITY: {
171 case DL_STEREOCAM_ARRAY: {
172 #if FORWARD_IMAGE_DATA
186 #ifdef STEREOCAM_FOLLOWME
188 case DL_STEREOCAM_FOLLOW_ME: {
static void h(const real32_T x[7], const real32_T q[4], real32_T y[6])
Main include for ABI (AirBorneInterface).
void cam_angles(void)
Computes the servo values from cam_pan_c and cam_tilt_c.
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
void float_rmat_mult(struct FloatEulers *rb, struct FloatRMat *m_a2b, struct FloatEulers *ra)
rotate angle by rotation matrix.
#define float_rmat_of_eulers
void float_rmat_transp_vmult(struct FloatVect3 *vb, struct FloatRMat *m_b2a, struct FloatVect3 *va)
rotate 3D vector by transposed rotation matrix.
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
void follow_me(uint8_t headingToFollow, uint8_t heightObject, uint8_t distanceToObject)
void stereocam_init(void)
#define STEREO_BODY_TO_STEREO_PHI
struct stereocam_t stereocam
#define STEREO_BODY_TO_STEREO_PSI
#define STEREOCAM_USE_MEDIAN_FILTER
#define STEREO_BODY_TO_STEREO_THETA
struct MedianFilter3Float medianfilter
void state2stereocam(void)
static void stereocam_parse_msg(void)
void stereocam_event(void)
static uint8_t stereocam_msg_buf[256]
The message buffer for the stereocamera.
interface to the TU Delft serial stereocam
bool msg_available
If we received a message.
struct link_device * device
The device which is uses for communication.
struct pprz_transport transport
The transport layer (PPRZ)
struct FloatRMat body_to_cam
IMU to stereocam rotation.
Architecture independent timing functions.
Periodic telemetry system header (includes downlink utility and generated code).
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.