blob: f3b4ae521dbb1664174fd7ae0d755ad9f7a84e73 (
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
|
/*
* 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 interrupted a move)
FilePosition filePos; // The file position that this move was read from
float initialUserX, initialUserY; // 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 spindleSpeeds[MaxSpindles]; // The spindle RPMs that were set, negative if anticlockwise direction
#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;
};
#endif /* SRC_GCODES_RESTOREPOINT_H_ */
|