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

Contains definitions regarding speed. More...

Classes

struct  Request
 Speed request. More...
 
struct  Response
 Speed response. More...
 
struct  ResponseMapping
 Speed response for the mapping process. More...
 

Variables

const int MEASUREMENT_INTERVAL_MS = 250
 The measurement interval. More...
 
const float WHEEL_DIAMETER_CM = 6.61
 Diameter of the wheels. More...
 
const float WHEEL_EXTENT_CM = float(3.141592654 * WHEEL_DIAMETER_CM)
 Extent of the wheels. More...
 
const uint8_t COUNTS_PER_REVOLUTION = 20
 Counts per revolution. More...
 
const float DISTANCE_PER_COUNT_CM = WHEEL_EXTENT_CM / COUNTS_PER_REVOLUTION
 Calculated distance per count. More...
 

Detailed Description

Contains definitions regarding speed.

Defines requests and responses for the inter-process communication and definitions to calculate the speed.

Variable Documentation

◆ COUNTS_PER_REVOLUTION

const uint8_t Speed::COUNTS_PER_REVOLUTION = 20

Counts per revolution.

The number of counts that indicates a full revolution of the respecting wheel.

◆ DISTANCE_PER_COUNT_CM

const float Speed::DISTANCE_PER_COUNT_CM = WHEEL_EXTENT_CM / COUNTS_PER_REVOLUTION

Calculated distance per count.

The distance that each count translates to in centimeter.

◆ MEASUREMENT_INTERVAL_MS

const int Speed::MEASUREMENT_INTERVAL_MS = 250

The measurement interval.

A dedicated thread will calculate the actual speed in this interval.

◆ WHEEL_DIAMETER_CM

const float Speed::WHEEL_DIAMETER_CM = 6.61

Diameter of the wheels.

The diameter of the wheels in centimeter.

◆ WHEEL_EXTENT_CM

const float Speed::WHEEL_EXTENT_CM = float(3.141592654 * WHEEL_DIAMETER_CM)

Extent of the wheels.

The extent of the wheels in centimeter.