Go to the source code of this file.
Functions | |
static void | ctrlc_handler (int sig) |
int | quit (int argc, char *argv[], void *data) |
int | stop (int argc, char *argv[], void *data) |
int | right (int argc, char *argv[], void *data) |
int | left (int argc, char *argv[], void *data) |
int | right3 (int argc, char *argv[], void *data) |
int | left3 (int argc, char *argv[], void *data) |
int | right2 (int argc, char *argv[], void *data) |
int | left2 (int argc, char *argv[], void *data) |
int | test (int argc, char *argv[], void *data) |
int | help (int argc, char *argv[], void *data) |
int | main (int argc, char *argv[]) |
void | kmot_GetSpeedMultiplier (knet_dev_t *dev, unsigned short *mult) |
void | kmot_SetSpeedMultiplier (knet_dev_t *dev, int mode) |
Variables | |
static int | quitReq = 0 |
static int | stopReq = 0 |
static int | currentCommand = 0 |
static FILE * | logfile |
static knet_dev_t * | motor |
static pthread_t | log_task |
static kb_command_t | cmds [] |
static char | buf [1024] |
static void ctrlc_handler | ( | int | sig | ) | [static] |
int help | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
Display a list of available commands.
Definition at line 453 of file koala_GoAutomation.c.
void kmot_GetSpeedMultiplier | ( | knet_dev_t * | dev, | |
unsigned short * | mult | |||
) |
void kmot_SetSpeedMultiplier | ( | knet_dev_t * | dev, | |
int | mode | |||
) |
int left | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
Set a new open loop command for the current motor. The controller must be properly initialized. syntax: openloop <command>
Definition at line 93 of file KBR.c.
References kmot_GetMeasure(), kmot_SetMode(), kmot_SetPoint(), kMotMesCurrent, kMotModeStopMotor, and kMotRegOpenLoop.
int left2 | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
Set a new open loop command for the current motor. The controller must be properly initialized. syntax: openloop <command>
Definition at line 152 of file KBR.c.
References kmot_SetMode(), kmot_SetPoint(), kMotModeStopMotor, and kMotRegOpenLoop.
int left3 | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
Set a new open loop command for the current motor. The controller must be properly initialized. syntax: openloop <command>
Definition at line 125 of file KBR.c.
References kmot_SetMode(), kmot_SetPoint(), kMotModeStopMotor, and kMotRegOpenLoop.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 217 of file KBR.c.
References ctrlc_handler(), kb_init(), kb_msg(), kb_parse_command(), kb_set_debug_level(), kmot_ConfigurePID(), kmot_GetFWVersion(), kmot_ResetError(), KMOT_REVISION, kmot_SetBlockedTime(), kmot_SetLimits(), kmot_SetMargin(), kmot_SetMode(), kmot_SetOptions(), kmot_SetSampleTime(), kmot_SetSpeedProfile(), KMOT_VERSION, kMotModeIdle, kMotRegCurrent, kMotRegPos, kMotRegSpeed, kMotSWOptStopMotorBlk, kMotSWOptWindup, KNET_BUS_I2C, knet_close(), knet_open(), quitReq, and status().
int quit | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
int right | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
Set a new open loop command for the current motor. The controller must be properly initialized. syntax: openloop <command>
Definition at line 70 of file KBR.c.
References kmot_GetMeasure(), kmot_SetMode(), kmot_SetPoint(), kMotMesCurrent, kMotModeStopMotor, and kMotRegOpenLoop.
int right2 | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
Definition at line 136 of file KBR.c.
References kmot_SetMode(), kmot_SetPoint(), kMotModeStopMotor, and kMotRegOpenLoop.
int right3 | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
Definition at line 109 of file KBR.c.
References kmot_SetMode(), kmot_SetPoint(), kMotModeStopMotor, and kMotRegOpenLoop.
int stop | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
Stop the current motor (set mode to stop motor mode).
Definition at line 59 of file KBR.c.
References kmot_SetMode(), and kMotModeStopMotor.
int test | ( | int | argc, | |
char * | argv[], | |||
void * | data | |||
) |
Set a new open loop command for the current motor. The controller must be properly initialized. syntax: openloop <command>
Definition at line 170 of file KBR.c.
References currentCommand, kmot_SetPoint(), and kMotRegOpenLoop.
char buf[1024] [static] |
kb_command_t cmds[] [static] |
Initial value:
The command table contains: command name : min number of args : max number of args : the function to callint currentCommand = 0 [static] |
Definition at line 34 of file KBR.c.
Referenced by kmot_log_task(), moveat(), moveatprofile(), openloop(), prescaler(), setmultiplier(), setspeed(), setspeedprofile(), settorque(), test(), and velprescaler().
pthread_t log_task [static] |
FILE* logfile [static] |
knet_dev_t* motor [static] |
Definition at line 37 of file KBR.c.
Referenced by kmot_ipConfigPID(), kmot_ipFirmware(), kmot_ipInitMotor(), kmot_ipMeasure(), kmot_ipResetError(), kmot_ipSetPointSource(), kmot_ipSetPos(), kmot_ipSetSpeed(), kmot_ipStatus(), and main().
int stopReq = 0 [static] |