Qualcomm Navigator Flight Control Interface  2.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Functions
nonblocking_trajectory_example.cpp File Reference
#include <csignal>
#include <iostream>
#include "api/flight_control_interface.hpp"

Functions

void signal_handler (int sig_num)
 
int main (int argc, char *argv[])
 This is an example of a trajectory-following mission. More...
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

This is an example of a trajectory-following mission.

It uses nonblocking versions of action functions to simplify the flow of the program to a single thread (multiple threads are managed internal to FCI). It also demonstrates the use of the FlightControlInterface::preempt_current_action() function by handling the SIGINT signal.