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

RestorePoint.h « GCodes « src - github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5b581691f316fdf8b7c781d5735139d03e6c32b5 (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
33
34
35
36
37
38
/*
 * RestorePoint.h
 *
 *  Created on: 14 Jun 2017
 *      Author: David
 */

#ifndef SRC_GCODES_RESTOREPOINT_H_
#define SRC_GCODES_RESTOREPOINT_H_

#include <RepRapFirmware.h>
#include <ObjectModel/ObjectModel.h>

class RestorePoint INHERIT_OBJECT_MODEL
{
public:
	float moveCoords[MaxAxes];				// The axis locations when we paused
	float feedRate;							// The feed rate for the current move
	float virtualExtruderPosition;			// The virtual extruder position at the start of this move
	float proportionDone;					// How much of this move we have already done (zero unless we interrupted a move)
	FilePosition filePos;					// The file position that this move was read from
	float initialUserC0, initialUserC1;		// If we paused during an arc move and proportionDone is nonzero, the X and Y user coordinates at the start of the move
	int toolNumber;							// The tool number that was active
	float fanSpeed;							// the last fan speed that was set by M106 with no P parameter

#if SUPPORT_LASER || SUPPORT_IOBITS
	LaserPwmOrIoBits laserPwmOrIoBits;		// The output port bits setting for this move, or the laser power
#endif

	RestorePoint() noexcept;
	void Init() noexcept;

protected:
	DECLARE_OBJECT_MODEL
	OBJECT_MODEL_ARRAY(coordinates)
};

#endif /* SRC_GCODES_RESTOREPOINT_H_ */