29 #include "generated/flight_plan.h"
37 PRINT_CONFIG_VAR(STEREO_UART)
40 #define STEREO_PORT (&((STEREO_UART).device))
43 #define StereoGetch() STEREO_PORT ->get_byte(STEREO_PORT->periph)
44 #define StereoSend1(c) STEREO_PORT->put_byte(STEREO_PORT->periph, 0, c)
45 #define StereoUartSend1(c) StereoSend1(c)
46 #define StereoSend(_dat,_len) { for (uint8_t i = 0; i< (_len); i++) StereoSend1(_dat[i]); };
47 #define StereoUartSetBaudrate(_b) uart_periph_set_baudrate(STEREO_PORT, _b);
48 #define StereoChAvailable()(xdev->char_available(xdev->periph))
56 #ifndef DOWNLINK_DEVICE
57 #define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
59 #include "pprzlink/messages.h"
116 volatile bool once =
true;
129 enu.
x += (sin_heading * 1.3 / 20);
130 enu.
y += (cos_heading * 1.3 / 20);
uint8_t mode
0 = straight, 1 = right, 2 = left, ...
Common code for AP and FBW telemetry.
arch independent LED (Light Emitting Diodes) API
float waypoint_get_alt(uint8_t wp_id)
Get altitude of waypoint in meters (above reference)
float waypoint_get_x(uint8_t wp_id)
Get X/East coordinate of waypoint in meters.
float waypoint_get_y(uint8_t wp_id)
Get Y/North coordinate of waypoint in meters.
void waypoint_set_enu(uint8_t wp_id, struct EnuCoor_f *enu)
Set local ENU waypoint coordinates.
vector in East North Up coordinates Units: meters
struct RotorcraftNavigation nav
void nav_set_heading_rad(float rad)
Set nav_heading in radians.
Rotorcraft navigation functions.
#define NavSetWaypointHere
float heading
heading setpoint (in radians)
void stereocam_droplet_init(void)
void stereocam_droplet_periodic(void)
#define StereoChAvailable()
struct link_device * xdev
static void stereo_parse(uint8_t c)
struct AvoidNavigationStruct avoid_navigation_data
global VIDEO state
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.