Go to the source code of this file.
Classes | |
class | YMotor |
Macros | |
#define | _Y_MOTORSTATUS_ENUM |
#define | Y_BRAKINGFORCE_INVALID (YAPI_INVALID_DOUBLE) |
#define | Y_COMMAND_INVALID (YAPI_INVALID_STRING) |
#define | Y_CUTOFFVOLTAGE_INVALID (YAPI_INVALID_DOUBLE) |
#define | Y_DRIVINGFORCE_INVALID (YAPI_INVALID_DOUBLE) |
#define | Y_FAILSAFETIMEOUT_INVALID (YAPI_INVALID_UINT) |
#define | Y_FREQUENCY_INVALID (YAPI_INVALID_DOUBLE) |
#define | Y_OVERCURRENTLIMIT_INVALID (YAPI_INVALID_INT) |
#define | Y_STARTERTIME_INVALID (YAPI_INVALID_INT) |
Typedefs | |
typedef void(* | YMotorValueCallback) (YMotor *func, const string &functionValue) |
Enumerations | |
enum | Y_MOTORSTATUS_enum { Y_MOTORSTATUS_IDLE = 0, Y_MOTORSTATUS_BRAKE = 1, Y_MOTORSTATUS_FORWD = 2, Y_MOTORSTATUS_BACKWD = 3, Y_MOTORSTATUS_LOVOLT = 4, Y_MOTORSTATUS_HICURR = 5, Y_MOTORSTATUS_HIHEAT = 6, Y_MOTORSTATUS_FAILSF = 7, Y_MOTORSTATUS_INVALID = -1 } |
Functions | |
YMotor * | yFindMotor (const string &func) |
YMotor * | yFirstMotor (void) |
#define _Y_MOTORSTATUS_ENUM |
Definition at line 56 of file yocto_motor.h.
#define Y_BRAKINGFORCE_INVALID (YAPI_INVALID_DOUBLE) |
Definition at line 70 of file yocto_motor.h.
#define Y_COMMAND_INVALID (YAPI_INVALID_STRING) |
Definition at line 76 of file yocto_motor.h.
#define Y_CUTOFFVOLTAGE_INVALID (YAPI_INVALID_DOUBLE) |
Definition at line 71 of file yocto_motor.h.
#define Y_DRIVINGFORCE_INVALID (YAPI_INVALID_DOUBLE) |
Definition at line 69 of file yocto_motor.h.
#define Y_FAILSAFETIMEOUT_INVALID (YAPI_INVALID_UINT) |
Definition at line 75 of file yocto_motor.h.
#define Y_FREQUENCY_INVALID (YAPI_INVALID_DOUBLE) |
Definition at line 73 of file yocto_motor.h.
#define Y_OVERCURRENTLIMIT_INVALID (YAPI_INVALID_INT) |
Definition at line 72 of file yocto_motor.h.
#define Y_STARTERTIME_INVALID (YAPI_INVALID_INT) |
Definition at line 74 of file yocto_motor.h.
typedef void(* YMotorValueCallback) (YMotor *func, const string &functionValue) |
Definition at line 54 of file yocto_motor.h.
enum Y_MOTORSTATUS_enum |
Enumerator | |
---|---|
Y_MOTORSTATUS_IDLE | |
Y_MOTORSTATUS_BRAKE | |
Y_MOTORSTATUS_FORWD | |
Y_MOTORSTATUS_BACKWD | |
Y_MOTORSTATUS_LOVOLT | |
Y_MOTORSTATUS_HICURR | |
Y_MOTORSTATUS_HIHEAT | |
Y_MOTORSTATUS_FAILSF | |
Y_MOTORSTATUS_INVALID |
Definition at line 57 of file yocto_motor.h.
|
inline |
Retrieves a motor for a given identifier. The identifier can be specified using several formats:
This function does not require that the motor is online at the time it is invoked. The returned object is nevertheless valid. Use the method YMotor.isOnline() to test if the motor is indeed online at a given time. In case of ambiguity when looking for a motor by logical name, no error is notified: the first instance found is returned. The search is performed first by hardware name, then by logical name.
If a call to this object's is_online() method returns FALSE although you are certain that the matching device is plugged, make sure that you did call registerHub() at application initialization time.
func | : a string that uniquely characterizes the motor |
Definition at line 542 of file yocto_motor.h.
|
inline |
Starts the enumeration of motors currently accessible. Use the method YMotor.nextMotor() to iterate on next motors.
Definition at line 553 of file yocto_motor.h.