#include <cartcomm/cframe.h>
Include dependency graph for straight.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
void * | driver_straight_alloc (void) |
Construct a driver. | |
void | driver_straight_free (void *data) |
Deconstruct the driver. | |
int | driver_straight (cframe_t *cframe, void *data) |
Drive the cart. |
|
Drive the cart. The driver is responsible for taking in the values the cframe and updating the cframe for transmission back to the cart. The process of updating is loosely called "driving".
Definition at line 14 of file straight.c. References cframe_t. |
|
Construct a driver. The driver usually will allocat some kind of data structure which maintains the state of the driver between calls to driver(). The driver can perform any other initialization needed during this call.
Definition at line 6 of file straight.c. |
|
Deconstruct the driver. Free any memory and clean up any other resources held by the driver.
Definition at line 10 of file straight.c. |