#include <cartcomm/cframe.h>
Include dependency graph for rosetta.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
void * | driver_rosetta_alloc (void) |
Construct a driver. | |
void | driver_rosetta_free (void *data) |
Deconstruct the driver. | |
int | driver_rosetta (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 33 of file rosetta.c. References cframe_t, cframe::cmd_irad, cframe::cmd_speed, state_t::counter, cframe::cur_mode, DEG_TO_RAD, and recorder_add(). |
Here is the call graph for this function:
|
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 17 of file rosetta.c. References state_t::counter. |
|
Deconstruct the driver. Free any memory and clean up any other resources held by the driver.
|