blob: a7a7939d4fbac07da44526e4478184018083a189 (
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
|
#include "emb-settings.h"
/*! Initializes and returns an EmbSettings */
EmbSettings embSettings_init(void)
{
EmbSettings settings;
settings.dstJumpsPerTrim = 6;
settings.home = embPoint_make(0.0, 0.0);
return settings;
}
/*! Returns the home position stored in (\a settings) as an EmbPoint (\a point). */
EmbPoint embSettings_home(EmbSettings* settings)
{
return settings->home;
}
/*! Sets the home position stored in (\a settings) to EmbPoint (\a point). You will rarely ever need to use this. */
void embSettings_setHome(EmbSettings* settings, EmbPoint point)
{
settings->home = point;
}
/* kate: bom off; indent-mode cstyle; indent-width 4; replace-trailing-space-save on; */
|