Go to the documentation of this file.
30 #ifndef __pid_t_defined
33 #define __pid_t_defined
36 #endif // ! __pid_t_defined
42 #endif // defined(_WIN32)
225 #define YP_PARAM_NAME \
283 "WHEEL_ANG_LINEAR", \
287 "CONTROL_MODE_RESEND", \
291 "ENCODER_DENOMINATOR", \
294 "INDEX_RISE_ANGLE", \
295 "INDEX_FALL_ANGLE", \
300 #define YP_PARAM_NECESSARY \
375 #define YP_PARAM_COMMENT \
377 "Parameter file version", \
378 "[Integer Nm/Nm] Fixed-point position of PC-MCU communication", \
379 "[Nm] Calculation fineness of torque control", \
380 "[Counts] PWM cycle", \
381 "[Counts/rev] Encoder specification", \
382 "Encoder type (2:2-phase incremental, 3:3-phase incremental)", \
383 "[V] Power source voltage", \
384 "[V] Minimal power source voltage", \
385 "[s] Velocity control cycle", \
386 "[in/out] Gear ratio", \
387 "[ohm] Motor internal resistance", \
388 "[Nm/A] Motor torque constant", \
389 "[rpm/V] Motor speed constant", \
390 "Motor type (0:DC, 3:3phase-AC)", \
391 "[rad] Offset angle of AC motor phase", \
392 "[m] Wheel radius", \
393 "[m] Right wheel radius", \
394 "[m] Left wheel radius", \
396 "[s] Trajectory control cycle", \
397 "[m/s] Maximum velocity", \
398 "[rad/s] Maximum angular velocity", \
399 "[m/ss] Maximum acceleration", \
400 "[rad/ss] Maximum angular acceleration", \
401 "[m/ss] Centrifugal acceleration limit", \
402 "[m/s / rad/s] Deacceleration factor of trajectory control", \
403 "[rad/ss / m] Feedback gain for distance error", \
404 "[rad/ss / rad] Feedback gain for angular error", \
405 "[rad/ss / rad/s] Feedback gain for angular velocity", \
406 "[m] Clipping value of line following control", \
407 "[1/s] PI control parameter Kp", \
408 "[1/ss] PI control parameter Ki", \
409 "[Nm] Motor maximum torque", \
410 "[Nm] Constant friction", \
411 "[Nm/(rad/s)] Viscous friction", \
412 "[Nm] Constant friction (neg-direction)", \
413 "[Nm/(rad/s)] Viscous friction (neg-direction)", \
414 "[Nm] Motor torque limit", \
415 "[rev] Maximum integrated error of PI control", \
416 "[Nm] Offset value of motor torque", \
417 "[kg] Robot weight", \
418 "[kgm^2] Robot moment of inertia", \
419 "[kgm^2] Rotor moment of inertia of motor", \
420 "[kgm^2] Tire moment of inertia", \
421 "[m] Robot size of front", \
422 "[m] Robot size of rear", \
423 "[m] Robot size of left", \
424 "[m] Robot size of right", \
431 "[m] Linear feedback area of stop command", \
432 "[rad] Linear feedback area of spin command", \
433 "[rad] Linear feedback area of wheel_ang command", \
434 "[rad] Minimum wheel angle (for wheel_angle command)", \
435 "[rad] Maximum wheel angle (for wheel_angle command)", \
436 "Used for vehicle control (0: false, 1: true)", \
437 "[s] Time-span to resend control mode (0: don't resend)", \
438 "Motor load inertia", \
439 "Motor load cross inertia", \
440 "Encoder count divider 2^x (e.g. 4 means divide by 16)", \
441 "Encoder count denominator" \
442 " (COUNT_REV/ENCODER_DENOMINATOR is encoder resolution for one electrical revolution)", \
443 "[s] Hall signal delay", \
444 "[Hz] Motor LR cutoff frequency", \
445 "[rad] Index signal rising edge angle at CW rotation", \
446 "[rad] Index signal falling edge angle at CW rotation", \
447 "[in/out] Index signal gear ratio", \
448 "[s] Timeout of the communication with the device", \
456 #define YP_PARAM_MAX_MOTOR_NUM 16
458 #define YP_PARAM_ALIAS_NUM 2
460 #define YP_PARAM_ALIAS \
463 YP_PARAM_RADIUS_L, YP_PARAM_RADIUS, MOTOR_LEFT \
466 YP_PARAM_RADIUS_R, YP_PARAM_RADIUS, MOTOR_RIGHT \
471 #define YP_PARAM_REQUIRED_VERSION 4.0
472 #define YP_PARAM_SUPPORTED_VERSION 5.0
517 #define YPSPUR_MAX_SOCKET 64
541 #define YPSPUR_MSQ_KEY 0x7045
542 #define YPSPUR_MSG_CMD 1
543 #define YPSPUR_MSG_SIZE (sizeof(YPSpur_msg) - sizeof(long))
550 #endif // __cplusplus
@ YP_PARAM_INDEX_FALL_ANGLE
@ YP_PARAM_DEVICE_TIMEOUT
@ YP_PARAM_MAX_CENTRIFUGAL_ACC
@ YPSPUR_GET_WHEEL_TORQUE
@ YP_PARAM_CONTROL_MODE_RESEND
@ YP_PARAM_MOTOR_M_INERTIA
@ YPSPUR_GET_JOINT_TORQUE
int clients[YPSPUR_MAX_SOCKET]
static const char YPSpur_CSName[CS_MAX][16]
pid_t pids[YPSPUR_MAX_SOCKET]
@ YP_PARAM_ENCODER_DENOMINATOR
#define YPSPUR_MAX_SOCKET
int(* recv)(struct ipcmd_t *ipcmd, YPSpur_msg *data)
@ YP_PARAM_TORQUE_NEWTON_NEG
@ YP_PARAM_MOMENT_INERTIA
@ YP_PARAM_LR_CUTOFF_FREQ
@ YP_PARAM_INDEX_RISE_ANGLE
@ YP_PARAM_MAX_WHEEL_ANGLE
@ YPSPUR_REQUEST_DEVICE_DUMP
@ YP_PARAM_WHEEL_ANG_LINEAR
enum ipcmd_t::ipcmd_type_t type
@ YP_PARAM_TORQUE_VISCOS_NEG
@ YP_PARAM_TIRE_M_INERTIA
enum ipcmd_t::ipcmd_tcp_type_t tcp_type
@ YP_PARAM_TORQUE_FINENESS
int(* send)(struct ipcmd_t *ipcmd, YPSpur_msg *data)
@ YP_PARAM_MIN_WHEEL_ANGLE
@ YP_PARAM_VEHICLE_CONTROL
void(* flush)(struct ipcmd_t *ipcmd)
yp-spur
Author(s):
autogenerated on Fri Oct 20 2023 03:02:42