Object Hunt  v0.2
Hunts for a not specified object in an unknown environment
Public Attributes | List of all members
Motor::Command Struct Reference

Used to control the motors. More...

#include <ObjectHuntDefinitions.h>

Public Attributes

uint8_t devices
 The devices for which the command applies. More...
 
uint8_t direction
 Specifies the direction. More...
 
uint8_t duty_cycle
 Specifies the duty cycle. More...
 

Detailed Description

Used to control the motors.

The base process will control the motors based on commands of this type from the navigation process.

Member Data Documentation

◆ devices

uint8_t Motor::Command::devices

The devices for which the command applies.

Each of the four LSB represent one regarding motor.

◆ direction

uint8_t Motor::Command::direction

Specifies the direction.

Please see the Direction namespace for possible values.

◆ duty_cycle

uint8_t Motor::Command::duty_cycle

Specifies the duty cycle.

The duty cycle translates into the value of the regarding motor. Possible values are 0-100.


The documentation for this struct was generated from the following file: