-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprobe.h
37 lines (32 loc) · 780 Bytes
/
probe.h
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
#pragma once
#include "warningTone.h"
enum class Probe
{
None,
NoWarning,
NoChange,
};
enum class ProbeSubtype1
{
Warning,
Motor
};
// Another subtype, to be used in printing correct messages
enum class ProbeSubtype2
{
Blank,
Starting,
Stopping,
Accelerating,
Decelerating,
Maintaining
};
struct Probe_Messages
{
int activity_tag;
String probe_string;
struct WarningTone::ToneParameters toneParameters;
};
void probeTrials(bool useProbeTrials, int count, double probability);
struct Probe_Messages getProbeMessages(enum Probe probeName, ProbeSubtype1 probe_subtype1, ProbeSubtype2 probe_subtype2 = ProbeSubtype2::Blank);
void checkProbeMotor (int &activityTag, String &message, Probe probe, ProbeSubtype2 probe_subtype2);