Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

rhsfun_examples.c File Reference

Go to the source code of this file.

Typedefs

typedef double float64

Functions

long normalize_heading_int (long n)
float normalize_heading_float (float n)
long round_off_heading_int (long n, long m)
float round_off_heading_float (float n, float m)
Symbolround_off_heading_air_rhs_function_code (list *args)
Symbolround_off_air_rhs_function_code (list *args)
void vector_from_to_position (float64 pos1[3], float64 pos2[3], float64 vector[3])
void vec2_norm (float64 v[3], float64 r[3], int abort)
float64 convert_to_soar_angle (float64 heading_in_rads)
void hrl_xydof_to_heading (float64 xydof[3], float64 *output)
long air_soar_round_off_angle (long n, long m)
float64 bracket_rad_to_deg (float64 var)
long convert (float64 flo)
long heading_to_point (long current_x, long current_y, long x, long y)
Symbolcompute_heading_rhs_function_code (list *args)
Symbolcompute_range_rhs_function_code (list *args)
void add_bot_rhs_functions ()
void remove_bot_rhs_functions ()


Typedef Documentation

typedef double float64
 

Definition at line 199 of file rhsfun_examples.c.

Referenced by bracket_rad_to_deg(), convert_to_soar_angle(), heading_to_point(), hrl_xydof_to_heading(), and vec2_norm().


Function Documentation

void add_bot_rhs_functions  ) 
 

Definition at line 433 of file rhsfun_examples.c.

References add_rhs_function(), compute_heading_rhs_function_code(), compute_range_rhs_function_code(), make_sym_constant(), round_off_air_rhs_function_code(), and round_off_heading_air_rhs_function_code().

Referenced by init_soar_agent().

long air_soar_round_off_angle long  n,
long  m
 

Definition at line 253 of file rhsfun_examples.c.

Referenced by bracket_rad_to_deg().

float64 bracket_rad_to_deg float64  var  ) 
 

Definition at line 274 of file rhsfun_examples.c.

References air_soar_round_off_angle(), and float64.

Referenced by heading_to_point().

Symbol* compute_heading_rhs_function_code list args  ) 
 

Definition at line 312 of file rhsfun_examples.c.

References cons, symbol_union::fc, cons_struct::first, heading_to_point(), symbol_union::ic, list, make_int_constant(), print(), print_with_symbols(), cons_struct::rest, Symbol, float_constant_struct::value, and int_constant_struct::value.

Referenced by add_bot_rhs_functions().

Symbol* compute_range_rhs_function_code list args  ) 
 

Definition at line 373 of file rhsfun_examples.c.

References cons, symbol_union::fc, cons_struct::first, symbol_union::ic, list, make_int_constant(), print(), print_with_symbols(), cons_struct::rest, Symbol, float_constant_struct::value, and int_constant_struct::value.

Referenced by add_bot_rhs_functions().

long convert float64  flo  ) 
 

Definition at line 279 of file rhsfun_examples.c.

Referenced by heading_to_point().

float64 convert_to_soar_angle float64  heading_in_rads  ) 
 

Definition at line 229 of file rhsfun_examples.c.

References float64.

Referenced by hrl_xydof_to_heading().

long heading_to_point long  current_x,
long  current_y,
long  x,
long  y
 

Definition at line 286 of file rhsfun_examples.c.

References bracket_rad_to_deg(), convert(), float64, hrl_xydof_to_heading(), vec2_norm(), and vector_from_to_position().

Referenced by compute_heading_rhs_function_code().

void hrl_xydof_to_heading float64  xydof[3],
float64 output
 

Definition at line 244 of file rhsfun_examples.c.

References convert_to_soar_angle(), and float64.

Referenced by heading_to_point().

float normalize_heading_float float  n  ) 
 

Definition at line 39 of file rhsfun_examples.c.

Referenced by round_off_heading_air_rhs_function_code().

long normalize_heading_int long  n  ) 
 

Definition at line 24 of file rhsfun_examples.c.

Referenced by round_off_heading_air_rhs_function_code().

void remove_bot_rhs_functions  ) 
 

Definition at line 443 of file rhsfun_examples.c.

References make_sym_constant(), and remove_rhs_function().

Referenced by soar_default_destroy_agent_procedure().

Symbol* round_off_air_rhs_function_code list args  ) 
 

Definition at line 151 of file rhsfun_examples.c.

References cons, symbol_union::fc, cons_struct::first, symbol_union::ic, list, make_float_constant(), make_int_constant(), print(), cons_struct::rest, round_off_heading_float(), round_off_heading_int(), Symbol, float_constant_struct::value, and int_constant_struct::value.

Referenced by add_bot_rhs_functions().

Symbol* round_off_heading_air_rhs_function_code list args  ) 
 

Definition at line 95 of file rhsfun_examples.c.

References cons, symbol_union::fc, cons_struct::first, symbol_union::ic, list, make_float_constant(), make_int_constant(), normalize_heading_float(), normalize_heading_int(), print(), cons_struct::rest, round_off_heading_float(), round_off_heading_int(), Symbol, float_constant_struct::value, and int_constant_struct::value.

Referenced by add_bot_rhs_functions().

float round_off_heading_float float  n,
float  m
 

Definition at line 66 of file rhsfun_examples.c.

Referenced by round_off_air_rhs_function_code(), and round_off_heading_air_rhs_function_code().

long round_off_heading_int long  n,
long  m
 

Definition at line 53 of file rhsfun_examples.c.

Referenced by round_off_air_rhs_function_code(), and round_off_heading_air_rhs_function_code().

void vec2_norm float64  v[3],
float64  r[3],
int  abort
 

Definition at line 215 of file rhsfun_examples.c.

References float64.

Referenced by heading_to_point().

void vector_from_to_position float64  pos1[3],
float64  pos2[3],
float64  vector[3]
 

Definition at line 208 of file rhsfun_examples.c.

Referenced by heading_to_point().


Generated on Thu Dec 11 13:00:29 2003 for Soar Kernel by doxygen 1.3.5