#include <config.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
#include <string.h>
#include <math.h>
#include <drivers/drivers.h>
#include <cartcomm/comm.h>
#include <conf.h>
#include <debug.h>
Include dependency graph for drive.c:
Go to the source code of this file.
Defines | |
#define | DEBUG_LEVEL 2 |
#define | SLEEP_OVERHEAD_US 850 |
Functions | |
void | drive (drivefunc_t func, void *data) |
The main driving loop. |
|
|
|
|
|
The main driving loop.
Definition at line 25 of file drive.c. References cartcomm_connect_sync(), cartcomm_decode_msg(), cartcomm_disconnect(), cartcomm_encode_msg(), cartcomm_read_msg(), cartcomm_send_msg(), cframe_t, cframe::cmd_irad, cframe::cmd_mode, cframe::cmd_speed, COMM_PERIOD_US, conf, cframe::cur_irad, DEBUG1, DEBUG2, DEBUG3, conf_t::port, cframe::seqno, conf_t::server, and conf_t::steering_offset. Referenced by main(). |
Here is the call graph for this function: