blob: e4232172980ebad31e0b81a45b9fedb6fc42d44c (
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
39
40
41
|
/*
* RawMove.cpp
*
* Created on: 18 Apr 2019
* Author: David
*/
#include "RawMove.h"
// Set up some default values in the move buffer for special moves, e.g. for Z probing and firmware retraction
void RawMove::SetDefaults(size_t firstDriveToZero)
{
moveType = 0;
isCoordinated = false;
usingStandardFeedrate = false;
usePressureAdvance = false;
checkEndstops = false;
reduceAcceleration = false;
hasExtrusion = false;
filePos = noFilePosition;
tool = nullptr;
for (size_t drive = firstDriveToZero; drive < MaxAxesPlusExtruders; ++drive)
{
coords[drive] = 0.0; // clear extrusion
}
}
#if SUPPORT_ASYNC_MOVES
void AsyncMove::SetDefaults()
{
for (float& f : movements)
{
f = 0.0; // clear extrusion
}
startSpeed = endSpeed = 0.0;
}
#endif
// End
|