|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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);
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
void waypoint_set_enu(uint8_t wp_id, struct EnuCoor_f *enu)
Set local ENU waypoint coordinates.
#define ANGLE_FLOAT_OF_BFP(_ai)
#define StereoChAvailable()
static void stereo_parse(uint8_t c)
float waypoint_get_alt(uint8_t wp_id)
Get altitude of waypoint in meters (above reference)
float waypoint_get_y(uint8_t wp_id)
Get Y/North coordinate of waypoint in meters.
int32_t nav_heading
with INT32_ANGLE_FRAC
struct AvoidNavigationStruct avoid_navigation_data
global VIDEO state
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
float waypoint_get_x(uint8_t wp_id)
Get X/East coordinate of waypoint in meters.
void stereocam_droplet_periodic(void)
vector in East North Up coordinates Units: meters
arch independent LED (Light Emitting Diodes) API
uint8_t mode
0 = straight, 1 = right, 2 = left, ...
Common code for AP and FBW telemetry.
struct link_device * xdev
void stereocam_droplet_init(void)
void nav_set_heading_rad(float rad)
Set nav_heading in radians.
#define NavSetWaypointHere