|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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 #warning "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: {
void stereocam_init(void)
#define float_rmat_of_eulers
bool msg_available
If we received a message.
void stereocam_event(void)
struct MedianFilter3Float medianfilter
static void h(const real32_T x[7], const real32_T q[4], real32_T y[6])
void float_rmat_mult(struct FloatEulers *rb, struct FloatRMat *m_a2b, struct FloatEulers *ra)
rotate angle by rotation matrix.
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
void cam_angles(void)
Computes the servo values from cam_pan_c and cam_tilt_c.
#define STEREOCAM_USE_MEDIAN_FILTER
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
void float_rmat_transp_vmult(struct FloatVect3 *vb, struct FloatRMat *m_b2a, struct FloatVect3 *va)
rotate 3D vector by transposed rotation matrix.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
struct FloatRMat body_to_cam
IMU to stereocam rotation.
#define STEREO_BODY_TO_STEREO_THETA
Architecture independent timing functions.
struct pprz_transport transport
The transport layer (PPRZ)
static uint8_t stereocam_msg_buf[256]
The message buffer for the stereocamera.
struct stereocam_t stereocam
struct link_device * device
The device which is uses for communication.
interface to the TU Delft serial stereocam
#define STEREO_BODY_TO_STEREO_PSI
static void stereocam_parse_msg(void)
void state2stereocam(void)
timer subsystem type(config options) --------------------------------------------(advanced timers using RCC_APB1) TIM1 adc(if USE_AD_TIM1) radio_control/ppm(if USE_PPM_TIM1
#define STEREO_BODY_TO_STEREO_PHI
void follow_me(uint8_t headingToFollow, uint8_t heightObject, uint8_t distanceToObject)