zcancmder_v2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
915 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <functional>
  4. #include "errorcode.hpp"
  5. namespace iflytop {
  6. using namespace std;
  7. class ZIXYMotor {
  8. public:
  9. virtual ~ZIXYMotor() {}
  10. virtual int32_t xymotor_enable(int32_t enable) { return err::koperation_not_support; }
  11. virtual int32_t xymotor_move_by(int32_t dx, int32_t dy, int32_t motor_velocity) { return err::koperation_not_support; }
  12. virtual int32_t xymotor_move_to(int32_t x, int32_t y, int32_t motor_velocity) { return err::koperation_not_support; }
  13. virtual int32_t xymotor_move_to_zero() { return err::koperation_not_support; }
  14. virtual int32_t xymotor_move_to_zero_and_calculated_shift() { return err::koperation_not_support; }
  15. virtual int32_t xymotor_read_pos(int32_t *x, int32_t *y) { return err::koperation_not_support; }
  16. virtual int32_t xymotor_calculated_pos_by_move_to_zero() { return err::koperation_not_support; }
  17. };
  18. } // namespace iflytop