Classes | Macros | Functions | Variables
make_rsn.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
Include dependency graph for make_rsn.c:

Go to the source code of this file.

Classes

struct  pos_t
 

Macros

#define DEG_SCALER   3.0
 
#define POS_SCALER   3.0
 
#define USAGE
 
#define X_BASE_OFFSET   15.0
 
#define Y_BASE_OFFSET   15.0
 

Functions

pos_tbuild_pos_list (void)
 
int main (int argc, char **argv)
 
pos_tmake_grid (void)
 
pos_tmake_random (void)
 
pos_tmake_wave (void)
 
void parse_args (int argc, char **argv)
 

Variables

int base_index = 0
 
int base_port = 6660
 
int num_nodes = 25
 
char pnm_filename [32] = "simple.pnm"
 
pos_tpos_list
 
float res = 0.15
 
float scale = 0.09
 
char shape_name [32] = "random"
 
FILE * world_file
 
char world_filename [32] = "gts.world"
 

Macro Definition Documentation

#define DEG_SCALER   3.0

Definition at line 123 of file make_rsn.c.

#define POS_SCALER   3.0

Definition at line 122 of file make_rsn.c.

#define USAGE
Value:
"USAG: make_motes [-n <number> -p <base port> -f <pnm file>"\
" -r <resolution> -s <scale> -i <base index>"\
" -o <world_file> -g <swarm geometry>]"

Definition at line 8 of file make_rsn.c.

#define X_BASE_OFFSET   15.0

Definition at line 120 of file make_rsn.c.

#define Y_BASE_OFFSET   15.0

Definition at line 121 of file make_rsn.c.

Function Documentation

pos_t* build_pos_list ( void  )

Definition at line 181 of file make_rsn.c.

int main ( int  argc,
char **  argv 
)

Definition at line 194 of file make_rsn.c.

pos_t* make_grid ( void  )

Definition at line 163 of file make_rsn.c.

pos_t* make_random ( void  )

Definition at line 143 of file make_rsn.c.

pos_t* make_wave ( void  )

Definition at line 125 of file make_rsn.c.

void parse_args ( int  argc,
char **  argv 
)

Definition at line 36 of file make_rsn.c.

Variable Documentation

int base_index = 0

Definition at line 24 of file make_rsn.c.

int base_port = 6660

Definition at line 25 of file make_rsn.c.

int num_nodes = 25

Definition at line 23 of file make_rsn.c.

char pnm_filename[32] = "simple.pnm"

Definition at line 30 of file make_rsn.c.

pos_t* pos_list

Definition at line 21 of file make_rsn.c.

float res = 0.15

Definition at line 27 of file make_rsn.c.

float scale = 0.09

Definition at line 26 of file make_rsn.c.

char shape_name[32] = "random"

Definition at line 28 of file make_rsn.c.

FILE* world_file

Definition at line 32 of file make_rsn.c.

char world_filename[32] = "gts.world"

Definition at line 29 of file make_rsn.c.



stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Mon Jun 10 2019 15:06:11