55 #ifndef _Y_MOTORSTATUS_ENUM 56 #define _Y_MOTORSTATUS_ENUM 69 #define Y_DRIVINGFORCE_INVALID (YAPI_INVALID_DOUBLE) 70 #define Y_BRAKINGFORCE_INVALID (YAPI_INVALID_DOUBLE) 71 #define Y_CUTOFFVOLTAGE_INVALID (YAPI_INVALID_DOUBLE) 72 #define Y_OVERCURRENTLIMIT_INVALID (YAPI_INVALID_INT) 73 #define Y_FREQUENCY_INVALID (YAPI_INVALID_DOUBLE) 74 #define Y_STARTERTIME_INVALID (YAPI_INVALID_INT) 75 #define Y_FAILSAFETIMEOUT_INVALID (YAPI_INVALID_UINT) 76 #define Y_COMMAND_INVALID (YAPI_INVALID_STRING) 91 #pragma option push -w-8022 115 YMotor(
const string& func);
162 {
return this->get_motorStatus(); }
166 {
return this->set_motorStatus(newval); }
181 int set_drivingForce(
double newval);
183 {
return this->set_drivingForce(newval); }
193 double get_drivingForce(
void);
196 {
return this->get_drivingForce(); }
210 int set_brakingForce(
double newval);
212 {
return this->set_brakingForce(newval); }
222 double get_brakingForce(
void);
225 {
return this->get_brakingForce(); }
242 int set_cutOffVoltage(
double newval);
244 {
return this->set_cutOffVoltage(newval); }
257 double get_cutOffVoltage(
void);
260 {
return this->get_cutOffVoltage(); }
271 int get_overCurrentLimit(
void);
274 {
return this->get_overCurrentLimit(); }
290 int set_overCurrentLimit(
int newval);
292 {
return this->set_overCurrentLimit(newval); }
306 int set_frequency(
double newval);
308 {
return this->set_frequency(newval); }
317 double get_frequency(
void);
320 {
return this->get_frequency(); }
332 int get_starterTime(
void);
335 {
return this->get_starterTime(); }
349 int set_starterTime(
int newval);
351 {
return this->set_starterTime(newval); }
365 int get_failSafeTimeout(
void);
368 {
return this->get_failSafeTimeout(); }
384 int set_failSafeTimeout(
int newval);
386 {
return this->set_failSafeTimeout(newval); }
388 string get_command(
void);
391 {
return this->get_command(); }
393 int set_command(
const string& newval);
395 {
return this->set_command(newval); }
424 static YMotor* FindMotor(
string func);
448 virtual int keepALive(
void);
454 virtual int resetStatus(
void);
466 virtual int drivingForceMove(
double targetPower,
int delay);
478 virtual int brakingForceMove(
double targetPower,
int delay);
493 {
return this->nextMotor();}
504 static YMotor* FirstMotor(
void);
int setFrequency(double newval)
Y_MOTORSTATUS_enum _motorStatus
YMotor * yFindMotor(const string &func)
int setStarterTime(int newval)
static const string COMMAND_INVALID
Y_MOTORSTATUS_enum motorStatus(void)
static const double CUTOFFVOLTAGE_INVALID
static const double FREQUENCY_INVALID
#define YAPI_INVALID_UINT
static YMotor * FindMotor(string func)
double cutOffVoltage(void)
virtual int _parseAttr(YJSONObject *json_val)
int setCommand(const string &newval)
static YMotor * First(void)
int setFailSafeTimeout(int newval)
int overCurrentLimit(void)
double drivingForce(void)
YMotorValueCallback _valueCallbackMotor
void(* YMotorValueCallback)(YMotor *func, const string &functionValue)
virtual int registerValueCallback(YFunctionValueCallback callback)
int setBrakingForce(double newval)
YMotor * yFirstMotor(void)
int setMotorStatus(Y_MOTORSTATUS_enum newval)
int failSafeTimeout(void)
static const double BRAKINGFORCE_INVALID
static YMotor * Find(string func)
#define YOCTO_CLASS_EXPORT
int setOverCurrentLimit(int newval)
int setDrivingForce(double newval)
static YMotor * FirstMotor(void)
double brakingForce(void)
static const double DRIVINGFORCE_INVALID
virtual int _invokeValueCallback(string value)
int setCutOffVoltage(double newval)