-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSpatialToolbox.h
More file actions
102 lines (90 loc) · 3.94 KB
/
SpatialToolbox.h
File metadata and controls
102 lines (90 loc) · 3.94 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/**
* @preserve
*
* .,,,;;,'''..
* .'','... ..',,,.
* .,,,,,,',,',;;:;,. .,l,
* .,',. ... ,;, :l.
* ':;. .'.:do;;. .c ol;'.
* ';;' ;.; ', .dkl';, .c :; .'.',::,,'''.
* ',,;;;,. ; .,' .'''. .'. .d;''.''''.
* .oxddl;::,,. ', .'''. .... .'. ,:;..
* .'cOX0OOkdoc. .,'. .. ..... 'lc.
* .:;,,::co0XOko' ....''..'.'''''''.
* .dxk0KKdc:cdOXKl............. .. ..,c....
* .',lxOOxl:'':xkl,',......'.... ,'.
* .';:oo:... .
* .cd, ╔═╗┌─┐┬─┐┬ ┬┌─┐┬─┐ .
* .l; ╚═╗├┤ ├┬┘└┐┌┘├┤ ├┬┘ '
* 'l. ╚═╝└─┘┴└─ └┘ └─┘┴└─ '.
* .o. ...
* .''''','.;:''.........
* .' .l
* .:. l'
* .:. .l.
* .x: :k;,.
* cxlc; cdc,,;;.
* 'l :.. .c ,
* o.
* .,
*
* ╦ ╦┬ ┬┌┐ ┬─┐┬┌┬┐ ╔═╗┌┐ ┬┌─┐┌─┐┌┬┐┌─┐
* ╠═╣└┬┘├┴┐├┬┘│ ││ ║ ║├┴┐ │├┤ │ │ └─┐
* ╩ ╩ ┴ └─┘┴└─┴─┴┘ ╚═╝└─┘└┘└─┘└─┘ ┴ └─┘
*
* Created by Valentin on 10/22/14.
*
* Copyright (c) 2015 Valentin Heun
*
* All ascii characters above must be included in any redistribution.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef SpatialToolbox_h
#define SpatialToolbox_h
#include "Arduino.h"
class SpatialToolbox {
public:
SpatialToolbox() {};
static void update();
static void developer();
static void add(String obj2, String pos2, String plugin = "default");
static void write(String object2, String pos2, float data);
static void writeStepUp(String obj2, String pos2);
static void writeStepDown(String obj2, String pos2);
static void writeStepUp(String obj2, String pos2, int steps);
static void writeStepDown(String obj2, String pos2, int steps);
static void writeStepSerial(String obj2, String pos2, int steps, bool direction);
static void writeDigital(String obj2, String pos2, bool data);
static void writeFaster(int pos, float data);
static float read(String obj2, String pos2);
static int stepAvailable(String obj2, String pos2);
static int stepAvailable(String obj2, String pos2, int steps);
static bool readDigital(String obj2, String pos2);
static bool readDigital(String obj2, String pos2, float threshold);
static float readFaster(int pos);
static int printObjects();
static float map(float x, float in_min, float in_max);
static float *floatObjectArray;
static float *floatObjectArrayOld;
static bool *plusObjectArray;
static bool *minusObjectArray;
private:
static void init();
static void sendDeveloper();
static bool clearState;
static bool starter;
static bool developerStatus;
static bool runInit;
static int caseSteper;
static int arraySize;
static char * object;
static unsigned int objectInt;
static char str[];
static char floatStr[];
static char **stringArray;
static float tempFloatBuffer;
};
#endif