discoverpixy
Enumerations | Functions
Tracking (Screen)
Collaboration diagram for Tracking (Screen):

Enumerations

enum  Tracking_Implementation { OUR_TRACKING, REFERENCE_TRACKING }
 

Functions

void tracking_set_mode (enum Tracking_Implementation impl)
 
SCREEN_STRUCTget_screen_tracking ()
 

Detailed Description

The Tracking-Screen shows the object-tracking and allows some configuration

Enumeration Type Documentation

Enum which contains the available tracking implementations

Enumerator
OUR_TRACKING 

Our own tracking PID implementation.

REFERENCE_TRACKING 

Pixy's internal tracking implementation.

Definition at line 31 of file screen_tracking.h.

31  {
32  OUR_TRACKING,
34 };
Pixy's internal tracking implementation.
Our own tracking PID implementation.

Function Documentation

SCREEN_STRUCT* get_screen_tracking ( )

Returns a pointer to the tracking screen

See also
gui_screen_navigate
Returns

Definition at line 418 of file screen_tracking.c.

419 {
420  return &screen;
421 }
static SCREEN_STRUCT screen

Here is the caller graph for this function:

void tracking_set_mode ( enum Tracking_Implementation  impl)

Sets the current Mode/Tracking Implementation. Call this before using the screen obtained by get_screen_tracking()

Parameters
implThe new mode

Definition at line 210 of file screen_tracking.c.

211 {
212  //Depending on the enum value let tracking_current point to a different setting/callback structure
213  switch (impl) {
214  case OUR_TRACKING:
216  break;
217 
218  case REFERENCE_TRACKING:
220  break;
221 
222  default:
223  tracking_current = NULL;
224  break;
225  }
226 }
static TRACKING_CONFIG_STRUCT tracking_our
static TRACKING_CONFIG_STRUCT * tracking_current
Pixy's internal tracking implementation.
static TRACKING_CONFIG_STRUCT tracking_reference
Our own tracking PID implementation.

Here is the caller graph for this function: