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);
146 if (heading > 360) { heading = 0; }
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
Rotorcraft navigation functions.
#define NavSetWaypointHere(_wp)
struct AvoidNavigationStruct avoid_navigation_data
global VIDEO state
vector in East North Up coordinates Units: meters
bool nav_set_heading_rad(float rad)
Set nav_heading in radians.
float waypoint_get_alt(uint8_t wp_id)
Get altitude of waypoint in meters (above reference)
#define ANGLE_FLOAT_OF_BFP(_ai)
#define StereoChAvailable()
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.
struct link_device * xdev
void stereocam_droplet_init(void)
#define DefaultChannel
SITL.
static void stereo_parse(uint8_t c)
void stereocam_droplet_periodic(void)
Common code for AP and FBW telemetry.
arch independent LED (Light Emitting Diodes) API
void waypoint_set_enu(uint8_t wp_id, struct EnuCoor_f *enu)
Set local ENU waypoint coordinates.
uint8_t mode
0 = straight, 1 = right, 2 = left, ...
int32_t nav_heading
with INT32_ANGLE_FRAC