#include <stdio.h>
#define TAKEOFF_ALT 10
static void
{
int err;
if (err < 0) {
return;
}
printf(">>>> Taking off.\n");
}
static void
{
int err;
if (err < 0) {
}
}
}
static void
{
int err;
if (err < 0) {
return;
}
printf("lat: %f, long: %f, alt: %f\n", pos.latitude, pos.longitude,
pos.altitude);
}
static void
{
}
}
static void
{
printf(">>>> Landed...\n");
}
static void
{
int err;
if (err < 0) {
return;
}
return;
if (err < 0) {
return;
}
printf(">>>> Successful takeoff, now landing.\n");
}
static void
{
int err;
SOL_INF(
"mavlink connection stablished");
if (err < 0) {
}
return;
}
if (err < 0) {
}
return;
}
}
int
main(
int argc,
char *argv[])
{
};
.handlers = &mavlink_handlers,
};
if (argc < 2) {
SOL_ERR(
"Usage: %s <address>", argv[0]);
goto err;
}
if (!mavlink) {
SOL_ERR(
"Unable to stablish a Mavlink connection");
goto err;
}
return EXIT_SUCCESS;
err:
return EXIT_FAILURE;
}