MotorController
Data Structures | Enumerations | Functions
coding_wheels.h File Reference

Go to the source code of this file.

Data Structures

struct  coding_wheels_config_t
 Configuration structure for coding wheels. More...
 

Enumerations

enum  wheel_orientation_t { DIRECT = 0U, INDIRECT = 1U }
 Possible values for coding wheels orientation. More...
 

Functions

void init_coding_wheels (coding_wheels_config_t config)
 Perform all the initializations required by the coding wheels. More...
 

Enumeration Type Documentation

§ wheel_orientation_t

Possible values for coding wheels orientation.

Enumerator
DIRECT 

Direct orientation

INDIRECT 

Indirect orientation

Definition at line 11 of file coding_wheels.h.

Function Documentation

§ init_coding_wheels()

void init_coding_wheels ( coding_wheels_config_t  config)

Perform all the initializations required by the coding wheels.

Parameters
[in]configThe initial configuration of the coding wheels driver. For common use, initial_left_ticks and initial_right_ticks should be set to 0.
Remarks
Behaviour is undefined for now if initial ticks aren't 0.

Definition at line 53 of file coding_wheels.c.