discoverpixy
Functions
Pixy Control Helper
Collaboration diagram for Pixy Control Helper:

Functions

int16_t pixy_PID_Y (int16_t x, int16_t w)
 
int16_t pixy_PID_X (int16_t x, int16_t w)
 

Detailed Description

A collection of helper functions that contain PID Control code used for object tracking.

Function Documentation

int16_t pixy_PID_X ( int16_t  x,
int16_t  w 
)

Execute one step of PID regulation for the X-servo.

Parameters
xdesired value (e.g. current x-position of the biggest block)
wactual value (e.g desired x-position)
Returns
The offset which needs to be added to the X-Servo position

Here is the caller graph for this function:

int16_t pixy_PID_Y ( int16_t  x,
int16_t  w 
)

Execute one step of PID regulation for the Y-servo.

Parameters
xdesired value (e.g. current y-position of the biggest block)
wactual value (e.g desired y-position)
Returns
The offset which needs to be added to the Y-Servo position

Here is the caller graph for this function: