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
Data Fields
sol_mavlink_handlers Struct Reference

Mavlink callback handlers. More...

#include <sol-mavlink.h>

Data Fields

uint16_t api_version
 Should always be set to SOL_MAVLINK_HANDLERS_API_VERSION. More...
 
void(* armed )(void *data, struct sol_mavlink *mavlink)
 On armed callback. More...
 
void(* connect )(void *data, struct sol_mavlink *mavlink)
 On connect callback. More...
 
void(* disarmed )(void *data, struct sol_mavlink *mavlink)
 On armed callback. More...
 
void(* mission_reached )(void *data, struct sol_mavlink *mavlink)
 On destination reached callback. More...
 
void(* mode_changed )(void *data, struct sol_mavlink *mavlink)
 On mode changed callback. More...
 
void(* position_changed )(void *data, struct sol_mavlink *mavlink)
 On position changed callback. More...
 

Detailed Description

Mavlink callback handlers.

Examples:
/src/samples/mavlink/basic.c, and /src/samples/mavlink/goto.c.

Field Documentation

uint16_t sol_mavlink_handlers::api_version

Should always be set to SOL_MAVLINK_HANDLERS_API_VERSION.

Examples:
/src/samples/mavlink/basic.c, and /src/samples/mavlink/goto.c.

Referenced by main().

void(* sol_mavlink_handlers::armed)(void *data, struct sol_mavlink *mavlink)

On armed callback.

Parameters
dataUser provided data
mavlinkMavlink Object
See Also
sol_mavlink_set_armed
sol_mavlink_is_armed

Callback called when the vehicle has been armed, no matter if it was armed by your application or not

void(* sol_mavlink_handlers::connect)(void *data, struct sol_mavlink *mavlink)

On connect callback.

Parameters
dataUser provided data
mavlinkMavlink Object
See Also
sol_mavlink_connect

Callback called when a connect request has been processed

void(* sol_mavlink_handlers::disarmed)(void *data, struct sol_mavlink *mavlink)

On armed callback.

Parameters
dataUser provided data
mavlinkMavlink Object
See Also
sol_mavlink_set_armed
sol_mavlink_is_armed

Callback called when the vehicle has been disarmed, no matter if it was disarmed by your application or not

void(* sol_mavlink_handlers::mission_reached)(void *data, struct sol_mavlink *mavlink)

On destination reached callback.

Parameters
dataUser provided data
mavlinkMavlink Object
See Also
sol_mavlink_take_off
sol_mavlink_go_to

Callback called when the vehicle has reached the current mission's destination.

void(* sol_mavlink_handlers::mode_changed)(void *data, struct sol_mavlink *mavlink)

On mode changed callback.

Parameters
dataUser provided data
mavlinkMavlink Object
See Also
sol_mavlink_set_mode

Callback called when a mode change has been processed

void(* sol_mavlink_handlers::position_changed)(void *data, struct sol_mavlink *mavlink)

On position changed callback.

Parameters
dataUser provided data
mavlinkMavlink Object
See Also
sol_mavlink_take_off
sol_mavlink_get_current_position

Callback called when the vehicle has changed its position, no matter if it was moved by your application or not


The documentation for this struct was generated from the following file: