|
|
@ -99,6 +99,7 @@ void ZModuleDeviceScriptCmderPaser::regfn() { |
|
|
|
virtual int32_t motor_move_to_zero_forward_and_calculated_shift(int32_t findzerospeed, int32_t findzeroedge_speed, int32_t acc, int32_t overtime) override; |
|
|
|
virtual int32_t motor_move_to_zero_backward_and_calculated_shift(int32_t findzerospeed, int32_t findzeroedge_speed, int32_t acc, int32_t overtime) override; |
|
|
|
virtual int32_t module_enable(uint16_t id, int32_t enable); |
|
|
|
|
|
|
|
#endif
|
|
|
|
PROCESS_PACKET_10(module_ping, "(mid)"); |
|
|
|
PROCESS_PACKET_10(module_stop, "(mid)"); |
|
|
@ -128,7 +129,6 @@ void ZModuleDeviceScriptCmderPaser::regfn() { |
|
|
|
ack->acktype = ICmdParserACK::kAckType_buf; |
|
|
|
}); |
|
|
|
PROCESS_PACKET_20(module_enable, "(mid, enable)"); |
|
|
|
|
|
|
|
#if 0
|
|
|
|
virtual int32_t motor_enable(int32_t enable) { return err::koperation_not_support; } |
|
|
|
virtual int32_t motor_rotate(int32_t direction, int32_t motor_velocity, int32_t acc) { return err::koperation_not_support; } |
|
|
@ -151,6 +151,11 @@ void ZModuleDeviceScriptCmderPaser::regfn() { |
|
|
|
virtual int32_t motor_read_pos(int32_t* pos) { return err::koperation_not_support; } |
|
|
|
virtual int32_t motor_set_current_pos_by_change_shift(int32_t pos) { return err::koperation_not_support; } // Ò»°ãÓÃÓÚ¶æ»ú
|
|
|
|
virtual int32_t motor_calculated_pos_by_move_to_zero() { return err::koperation_not_support; } |
|
|
|
|
|
|
|
virtual int32_t motor_easy_rotate(uint16_t id, int32_t direction); |
|
|
|
virtual int32_t motor_easy_move_by(uint16_t id, int32_t distance); |
|
|
|
virtual int32_t motor_easy_move_to(uint16_t id, int32_t position); |
|
|
|
virtual int32_t motor_easy_move_to_zero(uint16_t id, int32_t direction); |
|
|
|
#endif
|
|
|
|
|
|
|
|
PROCESS_PACKET_20(motor_enable, "(mid, enable)"); |
|
|
@ -175,6 +180,11 @@ void ZModuleDeviceScriptCmderPaser::regfn() { |
|
|
|
PROCESS_PACKET_50(motor_move_to_zero_backward_and_calculated_shift, "(mid, findzerospeed, findzeroedge_speed, acc, overtime)"); |
|
|
|
PROCESS_PACKET_10(motor_calculated_pos_by_move_to_zero, "(mid)"); |
|
|
|
|
|
|
|
PROCESS_PACKET_20(motor_easy_rotate, "(mid, direction)"); |
|
|
|
PROCESS_PACKET_20(motor_easy_move_by, "(mid, distance)"); |
|
|
|
PROCESS_PACKET_20(motor_easy_move_to, "(mid, position)"); |
|
|
|
PROCESS_PACKET_20(motor_easy_move_to_zero, "(mid, direction)"); |
|
|
|
|
|
|
|
#if 0
|
|
|
|
virtual ~ZIXYMotor() {} |
|
|
|
virtual int32_t xymotor_enable(int32_t enable) { return err::koperation_not_support; } |
|
|
|