master board program  v. 2 - 2018
/home/krtko/robocup_2018/robocup_2018/camera.c File Reference
#include "camera.h"
+ Include dependency graph for camera.c:

Macros

#define MAIN   2
 
#define READ   1
 
#define CAMERA_SERIAL   &SD4
 

Functions

 THD_WORKING_AREA (waCameraReadThread, 128)
 
 THD_FUNCTION (CameraReadThread, arg)
 
 THD_WORKING_AREA (waCameraProcessThread, 128)
 
 THD_FUNCTION (CameraProcessThread, arg)
 
void get_camera_values (void)
 
int16_t get_goal_degree (void)
 
int16_t get_goal_distance (void)
 
int16_t get_ball_degree (void)
 
int16_t get_ball_distance (void)
 
int16_t get_start (void)
 
int16_t get_shooting_event (void)
 
int16_t process_value (void)
 
void camera_init (void)
 

Variables

thread_t * camera_read_thread
 
thread_t * camera_process_thread
 
int16_t camera_read_values [NUMBER_OF_VALUES]
 
int16_t camera_actual_values [NUMBER_OF_VALUES]
 
int16_t camera_values [NUMBER_OF_VALUES]
 
char current_value
 

Macro Definition Documentation

#define CAMERA_SERIAL   &SD4
#define MAIN   2
#define READ   1

Function Documentation

void camera_init ( void  )
int16_t get_ball_degree ( void  )
int16_t get_ball_distance ( void  )
void get_camera_values ( void  )
int16_t get_goal_degree ( void  )
int16_t get_goal_distance ( void  )
int16_t get_shooting_event ( void  )
int16_t get_start ( void  )

+ Here is the caller graph for this function:

int16_t process_value ( void  )

+ Here is the caller graph for this function:

THD_FUNCTION ( CameraReadThread  ,
arg   
)

+ Here is the call graph for this function:

THD_FUNCTION ( CameraProcessThread  ,
arg   
)
THD_WORKING_AREA ( waCameraReadThread  ,
128   
)

+ Here is the caller graph for this function:

THD_WORKING_AREA ( waCameraProcessThread  ,
128   
)

Variable Documentation

int16_t camera_actual_values[NUMBER_OF_VALUES]
thread_t* camera_process_thread
thread_t* camera_read_thread
int16_t camera_read_values[NUMBER_OF_VALUES]
int16_t camera_values[NUMBER_OF_VALUES]
char current_value