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

Contains definitions for motors. More...

Namespaces

 Device
 The mapping of each bit to the respecting motor.
 
 Direction
 The direction definitions.
 
 Pin
 The pin definitions.
 

Classes

struct  Command
 Used to control the motors. More...
 

Variables

const uint8_t ENABLE_ALL = 20
 Enable all motors. More...
 
const uint32_t PWM_FREQUENCY = 1000
 The motors PWM frequency. More...
 

Detailed Description

Contains definitions for motors.

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.

Variable Documentation

◆ ENABLE_ALL

const uint8_t Motor::ENABLE_ALL = 20

Enable all motors.

This pin has to be set high in order for the motors for move. If this pin is low, the motor drivers will not move any motor.

◆ PWM_FREQUENCY

const uint32_t Motor::PWM_FREQUENCY = 1000

The motors PWM frequency.

The value represents the PWM frequency value in hertz.