Object Hunt  v0.2
Hunts for a not specified object in an unknown environment
Namespaces | Classes | Variables
Stepper Namespace Reference

Contains definitions for the stepper motor. More...

Namespaces

 Direction
 The direction definitions.
 
 Pin
 The pin definitions.
 

Classes

struct  Command
 Used to control the stepper motor. More...
 

Variables

const uint16_t COUNTS_PER_REV = 512
 Counts pre revolution. More...
 
const uint8_t MAX_STEPS = COUNTS_PER_REV/4
 Maximum steps per command. More...
 
const uint16_t IDLE_TIME = 1000
 Idle time between steps. More...
 
const uint8_t LOOKUP [8] = {0b01000, 0b01100, 0b00100, 0b00110, 0b00010, 0b00011, 0b00001, 0b01001}
 Lookup table. More...
 

Detailed Description

Contains definitions for the stepper motor.

Defines commands for the inter-process communication, pin numbers to interfere with the hardware and more. Left and right should be seen from the perspective of an imaginary driver of the car. The stepper motor is used to mount and move the camera.

Variable Documentation

◆ COUNTS_PER_REV

const uint16_t Stepper::COUNTS_PER_REV = 512

Counts pre revolution.

After 512 steps the motor has done one complete revolution.

◆ IDLE_TIME

const uint16_t Stepper::IDLE_TIME = 1000

Idle time between steps.

With this value the value of the stepper motor can be controlled.

◆ LOOKUP

const uint8_t Stepper::LOOKUP[8] = {0b01000, 0b01100, 0b00100, 0b00110, 0b00010, 0b00011, 0b00001, 0b01001}

Lookup table.

This table is used control the stepper motor coils in the right order.

◆ MAX_STEPS

const uint8_t Stepper::MAX_STEPS = COUNTS_PER_REV/4

Maximum steps per command.

Is used in order to not accidentally damage the camera wire.