Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
goto.c File Reference
#include <sol-log.h>
#include <sol-mainloop.h>
#include <sol-mavlink.h>
#include <sol-util.h>
#include <stdio.h>

Macros

#define DEST_ALT   20
 
#define DEST_LAT   -35.361354
 
#define DEST_LONG   149.166218
 
#define GT_MARGIN(_lval, _rval)   (_lval > (_rval * 0.95)) \
 
#define TAKEOFF_ALT   10
 

Functions

static void armed_cb (void *data, struct sol_mavlink *mavlink)
 
static void disarmed_cb (void *data, struct sol_mavlink *mavlink)
 
int main (int argc, char *argv[])
 
static void mavlink_connect_cb (void *data, struct sol_mavlink *mavlink)
 
static void mission_reached_cb (void *data, struct sol_mavlink *mavlink)
 
static void mode_changed_cb (void *data, struct sol_mavlink *mavlink)
 
static void position_changed_cb (void *data, struct sol_mavlink *mavlink)
 
static void takeoff (struct sol_mavlink *mavlink)
 

Macro Definition Documentation

#define DEST_ALT   20
#define DEST_LAT   -35.361354
#define DEST_LONG   149.166218
#define GT_MARGIN (   _lval,
  _rval 
)    (_lval > (_rval * 0.95)) \
#define TAKEOFF_ALT   10

Referenced by mission_reached_cb(), and takeoff().

Function Documentation

static void armed_cb ( void *  data,
struct sol_mavlink mavlink 
)
static
static void disarmed_cb ( void *  data,
struct sol_mavlink mavlink 
)
static

References sol_mavlink_get_mode(), and SOL_MAVLINK_MODE_LAND.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)
static void mavlink_connect_cb ( void *  data,
struct sol_mavlink mavlink 
)
static
static void mission_reached_cb ( void *  data,
struct sol_mavlink mavlink 
)
static
static void mode_changed_cb ( void *  data,
struct sol_mavlink mavlink 
)
static
static void position_changed_cb ( void *  data,
struct sol_mavlink mavlink 
)
static
static void takeoff ( struct sol_mavlink mavlink)
static