Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ZProbeEndstop.h « Endstops « src - github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c4f776c368eea73f91312112c01c6f5fcbd44cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * ZProbeEndstop.h
 *
 *  Created on: 15 Sep 2019
 *      Author: David
 */

#ifndef SRC_ENDSTOPS_ZPROBEENDSTOP_H_
#define SRC_ENDSTOPS_ZPROBEENDSTOP_H_

#include "Endstop.h"

class ZProbeEndstop final : public Endstop
{
public:
	DECLARE_FREELIST_NEW_DELETE(ZProbeEndstop)

	ZProbeEndstop(uint8_t p_axis, EndStopPosition pos) noexcept;

	EndStopType GetEndstopType() const noexcept override { return EndStopType::zProbeAsEndstop; }
	bool Stopped() const noexcept override;
	bool Prime(const Kinematics& kin, const AxisDriversConfig& axisDrivers) noexcept override;
	EndstopHitDetails CheckTriggered() noexcept override;
	bool Acknowledge(EndstopHitDetails what) noexcept override;
	void AppendDetails(const StringRef& str) noexcept override;

private:
	size_t zProbeNumber;					// which Z probe to use, always 0 for now
	bool stopAll;
};

#endif /* SRC_ENDSTOPS_ZPROBEENDSTOP_H_ */