-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModels.cs
More file actions
46 lines (42 loc) · 1.25 KB
/
Copy pathModels.cs
File metadata and controls
46 lines (42 loc) · 1.25 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// Models/SerialDataPoint.cs
namespace Stabilization.Models
{
public struct SerialDataPoint
{
public long Millis { get; set; }
public double Angle { get; set; }
public int Output { get; set; }
public DateTime Timestamp { get; set; }
public long SequenceNumber { get; set; }
public SerialDataPoint(long millis, double angle, int output, long sequenceNumber = 0)
{
Millis = millis;
Angle = angle;
Output = output;
Timestamp = DateTime.Now;
SequenceNumber = sequenceNumber;
}
}
public struct PIDParameters
{
public double Kp { get; set; }
public double Ki { get; set; }
public double Kd { get; set; }
public int Limit { get; set; }
public int BaseSpeed { get; set; }
public int Setpoint { get; set; }
}
public class SystemStatus
{
public bool IsConnected { get; set; }
public bool IsMonitoring { get; set; }
public bool IsLogging { get; set; }
public int DataRate { get; set; }
public int QueueSize { get; set; }
}
}