PX4 Firmware
PX4 Autopilot Software http://px4.io
simulator.cpp File Reference

This module interfaces via MAVLink to a software in the loop simulator (SITL) such as jMAVSim or Gazebo. More...

#include <px4_platform_common/log.h>
#include <px4_platform_common/tasks.h>
#include <px4_platform_common/time.h>
#include <pthread.h>
#include <poll.h>
#include <systemlib/err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <drivers/drv_board_led.h>
#include "simulator.h"
Include dependency graph for simulator.cpp:

Go to the source code of this file.

Functions

static void usage ()
 
__BEGIN_DECLS int simulator_main (int argc, char *argv[])
 

Variables

static px4_task_t g_sim_task = -1
 

Detailed Description

This module interfaces via MAVLink to a software in the loop simulator (SITL) such as jMAVSim or Gazebo.

Definition in file simulator.cpp.

Function Documentation

◆ simulator_main()

__END_DECLS int simulator_main ( int  argc,
char *  argv[] 
)

Definition at line 145 of file simulator.cpp.

References g_sim_task, Simulator::getInstance(), Simulator::start(), system_sleep, and usage().

Referenced by usage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usage()

static void usage ( void  )
static

Definition at line 131 of file simulator.cpp.

References __BEGIN_DECLS, __END_DECLS, and simulator_main().

Referenced by simulator_main().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_sim_task

px4_task_t g_sim_task = -1
static

Definition at line 59 of file simulator.cpp.

Referenced by simulator_main().