JeVois Tutorials  1.22
JeVois Smart Embedded Machine Vision Tutorials
 
Share this page:
Loading...
Searching...
No Matches
Macros | Functions | Variables
ArduinoPanTiltTutorial.C File Reference
#include <Servo.h>
Include dependency graph for ArduinoPanTiltTutorial.C:

Go to the source code of this file.

Macros

#define LEDPIN   13
 
#define SERIAL   Serial1
 
#define PANPIN   3
 
#define TILTPIN   5
 
#define PANZERO   90
 
#define TILTZERO   90
 
#define SCALE   100
 
#define INLEN   128
 

Functions

void setup ()
 
void loop ()
 

Variables

Servo panservo
 
Servo tiltservo
 
long pangain = 100
 
long tiltgain = 100
 
long panval = PANZERO * SCALE
 
long tiltval = TILTZERO * SCALE
 
char instr [INLEN+1]
 

Macro Definition Documentation

◆ INLEN

#define INLEN   128

Definition at line 29 of file ArduinoPanTiltTutorial.C.

◆ LEDPIN

#define LEDPIN   13

Definition at line 8 of file ArduinoPanTiltTutorial.C.

◆ PANPIN

#define PANPIN   3

Definition at line 13 of file ArduinoPanTiltTutorial.C.

◆ PANZERO

#define PANZERO   90

Definition at line 17 of file ArduinoPanTiltTutorial.C.

◆ SCALE

#define SCALE   100

Definition at line 23 of file ArduinoPanTiltTutorial.C.

◆ SERIAL

#define SERIAL   Serial1

Definition at line 10 of file ArduinoPanTiltTutorial.C.

◆ TILTPIN

#define TILTPIN   5

Definition at line 15 of file ArduinoPanTiltTutorial.C.

◆ TILTZERO

#define TILTZERO   90

Definition at line 18 of file ArduinoPanTiltTutorial.C.

Function Documentation

◆ loop()

void loop ( )

Definition at line 46 of file ArduinoPanTiltTutorial.C.

References INLEN, instr, LEDPIN, pangain, panservo, panval, SCALE, SERIAL, tiltgain, tiltservo, and tiltval.

◆ setup()

void setup ( )

Definition at line 31 of file ArduinoPanTiltTutorial.C.

References LEDPIN, PANPIN, panservo, panval, SCALE, SERIAL, TILTPIN, tiltservo, and tiltval.

Variable Documentation

◆ instr

char instr[INLEN+1]

Definition at line 30 of file ArduinoPanTiltTutorial.C.

Referenced by loop().

◆ pangain

long pangain = 100

Definition at line 24 of file ArduinoPanTiltTutorial.C.

Referenced by loop().

◆ panservo

Servo panservo

Definition at line 12 of file ArduinoPanTiltTutorial.C.

Referenced by loop(), and setup().

◆ panval

long panval = PANZERO * SCALE

Definition at line 26 of file ArduinoPanTiltTutorial.C.

Referenced by loop(), and setup().

◆ tiltgain

long tiltgain = 100

Definition at line 25 of file ArduinoPanTiltTutorial.C.

Referenced by loop().

◆ tiltservo

Servo tiltservo

Definition at line 14 of file ArduinoPanTiltTutorial.C.

Referenced by loop(), and setup().

◆ tiltval

long tiltval = TILTZERO * SCALE

Definition at line 27 of file ArduinoPanTiltTutorial.C.

Referenced by loop(), and setup().