PX4 Firmware
PX4 Autopilot Software http://px4.io
microRTPS_client.h File Reference
#include "microRTPS_transport.h"
#include <inttypes.h>
#include <cstdio>
#include <ctime>
#include <pthread.h>
#include <termios.h>
#include <ucdr/microcdr.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/posix.h>
#include <px4_platform_common/tasks.h>
#include <px4_platform_common/time.h>
#include <uORB/uORB.h>
Include dependency graph for microRTPS_client.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  baudtype
 
struct  options
 

Macros

#define BUFFER_SIZE   1024
 
#define LOOPS   -1
 
#define SLEEP_MS   1
 
#define BAUDRATE   460800
 
#define DEVICE   "/dev/ttyACM0"
 
#define POLL_MS   1
 
#define IP   "127.0.0.1"
 
#define DEFAULT_RECV_PORT   2019
 
#define DEFAULT_SEND_PORT   2020
 

Functions

void * send (void *data)
 
void micrortps_start_topics (struct timespec &begin, uint64_t &total_read, uint64_t &received, int &loop)
 

Variables

struct options _options
 
bool _should_exit_task
 
Transport_node * transport_node
 

Macro Definition Documentation

◆ BAUDRATE

#define BAUDRATE   460800

Definition at line 55 of file microRTPS_client.h.

◆ BUFFER_SIZE

#define BUFFER_SIZE   1024

Definition at line 52 of file microRTPS_client.h.

◆ DEFAULT_RECV_PORT

#define DEFAULT_RECV_PORT   2019

Definition at line 59 of file microRTPS_client.h.

◆ DEFAULT_SEND_PORT

#define DEFAULT_SEND_PORT   2020

Definition at line 60 of file microRTPS_client.h.

◆ DEVICE

#define DEVICE   "/dev/ttyACM0"

Definition at line 56 of file microRTPS_client.h.

◆ IP

#define IP   "127.0.0.1"

Definition at line 58 of file microRTPS_client.h.

◆ LOOPS

#define LOOPS   -1

Definition at line 53 of file microRTPS_client.h.

◆ POLL_MS

#define POLL_MS   1

Definition at line 57 of file microRTPS_client.h.

◆ SLEEP_MS

#define SLEEP_MS   1

Definition at line 54 of file microRTPS_client.h.

Function Documentation

◆ micrortps_start_topics()

void micrortps_start_topics ( struct timespec &  begin,
uint64_t &  total_read,
uint64_t &  received,
int &  loop 
)

Referenced by micrortps_start().

Here is the caller graph for this function:

◆ send()

void* send ( void *  data)

Referenced by __EXPORT::SPI::probe(), __EXPORT::I2C::probe(), Simulator::send_mavlink_message(), test_hott_telemetry(), and __EXPORT::I2C::transfer().

Here is the caller graph for this function:

Variable Documentation

◆ _options

struct options _options

Definition at line 56 of file microRTPS_client_main.cpp.

Referenced by micrortps_start(), and parse_options().

◆ _should_exit_task

bool _should_exit_task

Definition at line 54 of file microRTPS_client_main.cpp.

Referenced by micrortps_client_main().

◆ transport_node

Transport_node* transport_node

Definition at line 55 of file microRTPS_client_main.cpp.

Referenced by micrortps_client_main(), and micrortps_start().