12 changed files with 290 additions and 171 deletions
-
26components/mini_servo_motor/mini_servo_motor_ctrl_module.hpp
-
18components/step_motor_ctrl_module/step_motor_ctrl_module.hpp
-
15components/step_motor_ctrl_module/step_motor_ctrl_module_v2.cpp
-
25components/step_motor_ctrl_module/step_motor_ctrl_module_v2.hpp
-
153components/zcancmder/zimodule_impl_v2.cpp
-
48components/zcancmder/zimodule_impl_v2.hpp
-
1components/zprotocols/zcancmder_v2/api/errorcode.hpp
-
36components/zprotocols/zcancmder_v2/api/reg_index.hpp
-
11components/zprotocols/zcancmder_v2/api/zi_module.hpp
-
39components/zprotocols/zcancmder_v2/api/zi_motor.hpp
-
70components/zprotocols/zcancmder_v2/cmdid.hpp
-
17components/zprotocols/zcancmder_v2/protocol_parser.cpp
@ -0,0 +1,15 @@ |
|||||
|
#include "step_motor_ctrl_module_v2.hpp"
|
||||
|
|
||||
|
using namespace iflytop; |
||||
|
|
||||
|
int32_t StepMotorCtrlModuleV2::module_stop() { return 0; } |
||||
|
int32_t StepMotorCtrlModuleV2::module_break() { return 0; } |
||||
|
int32_t StepMotorCtrlModuleV2::module_start() { return 0; } |
||||
|
|
||||
|
int32_t StepMotorCtrlModuleV2::motor_easy_rotate(int32_t direction) { return 0; } |
||||
|
int32_t StepMotorCtrlModuleV2::motor_easy_move_by(int32_t distance) { return 0; } |
||||
|
int32_t StepMotorCtrlModuleV2::motor_easy_move_to(int32_t position) { return 0; } |
||||
|
int32_t StepMotorCtrlModuleV2::motor_easy_move_to_zero(int32_t direction) { return 0; } |
||||
|
int32_t StepMotorCtrlModuleV2::motor_easy_set_current_pos(int32_t pos) { return 0; } |
||||
|
int32_t StepMotorCtrlModuleV2::motor_easy_move_to_io(int32_t ioindex, int32_t direction) { return 0; } |
||||
|
int32_t StepMotorCtrlModuleV2::motor_calculated_pos_by_move_to_zero() { return 0; } |
@ -0,0 +1,25 @@ |
|||||
|
#pragma once
|
||||
|
//
|
||||
|
#include "sdk/os/zos.hpp"
|
||||
|
#include "sdk\components\tmc\basic\tmc_ic_interface.hpp"
|
||||
|
#include "sdk\components\zcancmder\zcanreceiver.hpp"
|
||||
|
#include "sdk\components\zcancmder\zimodule_impl_v2.hpp"
|
||||
|
namespace iflytop { |
||||
|
class StepMotorCtrlModuleV2 : public ZIModuleImplV2, public ZIMotor { |
||||
|
private: |
||||
|
IStepperMotor* m_stepM1; |
||||
|
|
||||
|
public: |
||||
|
virtual int32_t module_stop(); |
||||
|
virtual int32_t module_break(); |
||||
|
virtual int32_t module_start(); |
||||
|
|
||||
|
virtual int32_t motor_easy_rotate(int32_t direction); |
||||
|
virtual int32_t motor_easy_move_by(int32_t distance); |
||||
|
virtual int32_t motor_easy_move_to(int32_t position); |
||||
|
virtual int32_t motor_easy_move_to_zero(int32_t direction); |
||||
|
virtual int32_t motor_easy_set_current_pos(int32_t pos); |
||||
|
virtual int32_t motor_easy_move_to_io(int32_t ioindex, int32_t direction); |
||||
|
virtual int32_t motor_calculated_pos_by_move_to_zero(); |
||||
|
}; |
||||
|
} // namespace iflytop
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue