blob: c690f9cd27d6a1ceaa0de1d23c0be9bb472199c2 (
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
|
/*
* StraightProbeSettings.cpp
*
* Created on: 4 Oct 2019
* Author: manuel
*/
#include "StraightProbeSettings.h"
#include <Platform/RepRap.h>
StraightProbeSettings::StraightProbeSettings() noexcept
{
Reset();
}
void StraightProbeSettings::Reset() noexcept
{
movingAxes = AxesBitmap();
type = StraightProbeType::unset;
for (size_t axis = 0; axis < MaxAxes; ++axis)
{
target[axis] = 0;
}
}
void StraightProbeSettings::SetCoordsToTarget(float coords[MaxAxes]) const noexcept
{
for (size_t axis = 0; axis < MaxAxes; ++axis)
{
coords[axis] = target[axis];
}
}
// End
|