Classes | Functions | Variables
viewer_sdl.c File Reference

Simple viewer (SDL) More...

#include "urg_sensor.h"
#include "urg_utils.h"
#include "urg_connection.h"
#include "plotter_sdl.h"
#include <SDL.h>
#include <math.h>
Include dependency graph for viewer_sdl.c:

Go to the source code of this file.

Classes

struct  scan_mode_t
 

Functions

static void help_exit (const char *program_name)
 
int main (int argc, char *argv[])
 
static void parse_args (scan_mode_t *mode, int argc, char *argv[])
 
static void plot_data (urg_t *urg, long data[], unsigned short intensity[], int data_n, bool is_multiecho)
 
static void plot_data_point (urg_t *urg, long data[], unsigned short intensity[], int data_n, bool is_multiecho, int offset)
 

Variables

static const char * ethernet_address = "192.168.0.10"
 
static const char * serial_device = "/dev/ttyACM0"
 

Detailed Description

Simple viewer (SDL)

Author
Satofumi KAMIMURA
Id
viewer_sdl.c,v d746d6f9127d 2011/05/08 23:10:44 satofumi

Definition in file viewer_sdl.c.

Function Documentation

◆ help_exit()

static void help_exit ( const char *  program_name)
static

Definition at line 38 of file viewer_sdl.c.

◆ main()

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

Definition at line 157 of file viewer_sdl.c.

◆ parse_args()

static void parse_args ( scan_mode_t mode,
int  argc,
char *  argv[] 
)
static

Definition at line 53 of file viewer_sdl.c.

◆ plot_data()

static void plot_data ( urg_t urg,
long  data[],
unsigned short  intensity[],
int  data_n,
bool  is_multiecho 
)
static

Definition at line 121 of file viewer_sdl.c.

◆ plot_data_point()

static void plot_data_point ( urg_t urg,
long  data[],
unsigned short  intensity[],
int  data_n,
bool  is_multiecho,
int  offset 
)
static

Definition at line 91 of file viewer_sdl.c.

Variable Documentation

◆ ethernet_address

const char* ethernet_address = "192.168.0.10"
static

Definition at line 23 of file viewer_sdl.c.

◆ serial_device

const char* serial_device = "/dev/ttyACM0"
static

Definition at line 21 of file viewer_sdl.c.



urg_c
Author(s): Satofumi Kamimura , Katsumi Kimoto, Adrian Boeing
autogenerated on Wed Mar 2 2022 01:08:11