Merge remote-tracking branch 'upstream/edge' into upstream-master
[clinton/Smoothieware.git] / src / modules / tools / zprobe / DeltaCalibrationStrategy.h
1 #ifndef _DELTALEVELINGSTRATEGY
2 #define _DELTALEVELINGSTRATEGY
3
4 #include "LevelingStrategy.h"
5
6 #define delta_calibration_strategy_checksum CHECKSUM("delta-calibration")
7
8 class StreamOutput;
9
10 class DeltaCalibrationStrategy : public LevelingStrategy
11 {
12 public:
13 DeltaCalibrationStrategy(ZProbe *zprobe) : LevelingStrategy(zprobe){};
14 ~DeltaCalibrationStrategy(){};
15 bool handleGcode(Gcode* gcode);
16 bool handleConfig();
17
18 private:
19 bool set_trim(float x, float y, float z, StreamOutput *stream);
20 bool get_trim(float& x, float& y, float& z);
21 bool calibrate_delta_endstops(Gcode *gcode);
22 bool calibrate_delta_radius(Gcode *gcode);
23 bool probe_delta_points(Gcode *gcode);
24 float findBed();
25
26 float probe_radius;
27 float initial_height;
28 };
29
30 #endif