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: 129d610042a381e169d52e5f85404e920e58fc39 (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
/*
 * RestorePoint.h
 *
 *  Created on: 14 Jun 2017
 *      Author: David
 */

#ifndef SRC_GCODES_RESTOREPOINT_H_
#define SRC_GCODES_RESTOREPOINT_H_

#include "RepRapFirmware.h"

#if SUPPORT_IOBITS
#include "PortControl.h"
#endif

struct RestorePoint
{
	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 interrupts a move)
	FilePosition filePos;					// The file position that this move was read from
#if SUPPORT_IOBITS
	IoBits_t ioBits;						// The output port bits setting for this move
#endif

	RestorePoint();
	void Init();
};

#endif /* SRC_GCODES_RESTOREPOINT_H_ */