xyzcal.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //xyzcal.h - xyz calibration with image processing
  2. #ifndef _XYZCAL_H
  3. #define _XYZCAL_H
  4. #include <inttypes.h>
  5. extern void xyzcal_meassure_enter(void);
  6. extern void xyzcal_meassure_leave(void);
  7. extern bool xyzcal_lineXYZ_to(int16_t x, int16_t y, int16_t z, uint16_t delay_us, int8_t check_pinda);
  8. extern bool xyzcal_spiral2(int16_t cx, int16_t cy, int16_t z0, int16_t dz, int16_t radius, int16_t rotation, uint16_t delay_us, int8_t check_pinda, uint16_t* pad);
  9. extern bool xyzcal_spiral8(int16_t cx, int16_t cy, int16_t z0, int16_t dz, int16_t radius, uint16_t delay_us, int8_t check_pinda, uint16_t* pad);
  10. //extern int8_t xyzcal_meassure_pinda_hysterezis(int16_t min_z, int16_t max_z, uint16_t delay_us, uint8_t samples);
  11. extern void xyzcal_scan_pixels_32x32(int16_t cx, int16_t cy, int16_t min_z, int16_t max_z, uint16_t delay_us, uint8_t* pixels);
  12. extern void xyzcal_histo_pixels_32x32(uint8_t* pixels, uint16_t* histo);
  13. extern void xyzcal_adjust_pixels(uint8_t* pixels, uint16_t* histo);
  14. extern int16_t xyzcal_match_pattern_12x12_in_32x32(uint16_t* pattern, uint8_t* pixels, uint8_t x, uint8_t y);
  15. extern int16_t xyzcal_find_pattern_12x12_in_32x32(uint8_t* pixels, uint16_t* pattern, uint8_t* pc, uint8_t* pr);
  16. extern int8_t xyzcal_find_point_center2(uint16_t delay_us);
  17. //extern int8_t xyzcal_find_point_center(int16_t x0, int16_t y0, int16_t z0, int16_t min_z, int16_t max_z, uint16_t delay_us, uint8_t turns);
  18. extern bool xyzcal_searchZ(void);
  19. extern bool xyzcal_scan_and_process(void);
  20. extern bool xyzcal_find_bed_induction_sensor_point_xy(void);
  21. #endif //_XYZCAL_H