EE445M RTOS
Taken at the University of Texas Spring 2015
nav Class Reference

#include <direction.hpp>

Collaboration diagram for nav:
Collaboration graph

Static Public Member Functions

static Direction opposite (Direction d)
 

Detailed Description

Definition at line 10 of file direction.hpp.

Member Function Documentation

static Direction nav::opposite ( Direction  d)
inlinestatic

Definition at line 12 of file direction.hpp.

References BACKWARD, FORWARD, LEFT, and RIGHT.

Referenced by motor::adjusted_direction(), and motor::reverse().

12  {
13  switch(d) {
14  case FORWARD: return BACKWARD;
15  case BACKWARD: return FORWARD;
16  case LEFT: return RIGHT;
17  case RIGHT: return LEFT;
18  }
19  }

Here is the caller graph for this function:


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