![]() |
Dynamixel
2.9.5
RoadNarrows Robotics Dynamixel Package
|
Simple continuous spin test of a servo. More...
#include <sys/select.h>#include <stdio.h>#include <unistd.h>#include <string.h>#include <stdlib.h>#include <libgen.h>#include <ctype.h>#include "rnr/rnrconfig.h"#include "rnr/opts.h"#include "rnr/log.h"#include "dynamixel/Dynamixel.h"#include "dynamixel/libDynamixel.h"#include "version.h"Go to the source code of this file.
Macros | |
| #define | APP_EC_OK 0 |
| #define | APP_EC_USAGE 2 |
| #define | APP_EC_EXEC 4 |
Functions | |
| bool_t | peekc (uint_t msec) |
| static void | MainInitArgs (int argc, char *argv[]) |
| Main argument initialization. More... | |
| static int | AppDynaInit () |
| static void | AppDynaRun () |
| static void | AppDynaDeinit () |
| static void | AppBanner () |
| int | main (int argc, char *argv[]) |
| Main. More... | |
Variables | |
| static char * | Argv0 |
| the command | |
| static char * | OptsSerDev = "/dev/ttyUSB0" |
| the serial device | |
| static int | OptsBaudRate = 1000000 |
| serial baudrate | |
| static int | OptsSpeed = 200 |
| servo speed | |
| static int | ArgServoId = -1 |
| servo id | |
| static OptsPgmInfo_T | AppPgmInfo |
| Program information. More... | |
| static OptsInfo_T | AppOptsInfo [] |
| Command line options information. | |
| int | ServoDir = DYNA_DIR_CW |
| DynaHandle_T * | DynaHandle |
Simple continuous spin test of a servo.
Definition in file spintest.c.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 321 of file spintest.c.
References MainInitArgs().
|
static |
Main argument initialization.
| argc | Command-line argument count. |
| argv | Command-line argument list. |
Definition at line 183 of file spintest.c.
References AppOptsInfo, AppPgmInfo, ArgServoId, Argv0, DYNA_ADDR_GOAL_SPEED_LSB, DYNA_ADDR_LIM_CCW_LSB, DYNA_ADDR_LIM_CW_LSB, DYNA_CCW_POS_CONT_MODE, DYNA_CW_POS_CONT_MODE, DYNA_DIR_CCW, DYNA_DIR_CW, DYNA_GOAL_SPEED_DIR_CCW, DYNA_GOAL_SPEED_DIR_CW, DYNA_GOAL_SPEED_MAG_MASK, DYNA_OK, DYNA_TORQUE_MAX_RAW, OptsBaudRate, OptsSerDev, OptsSpeed, and PkgInfo.
Referenced by main().
|
static |
Program information.
Definition at line 82 of file spintest.c.
Referenced by MainInitArgs().