-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHardwareInterface.vdmrt
More file actions
31 lines (21 loc) · 1013 Bytes
/
HardwareInterface.vdmrt
File metadata and controls
31 lines (21 loc) · 1013 Bytes
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
class HardwareInterface
values
-- @ interface: type = parameter, name="forwardSpeed";
public forwardSpeed : RealPort = new RealPort(4.0);
-- @ interface: type = parameter, name="forwardRotate";
public forwardRotate : RealPort = new RealPort(5.0);
-- @ interface: type = parameter, name="backwardRotate";
public backwardRotate : RealPort = new RealPort(1.0);
instance variables
-- @ interface: type = input, name="lfLeftVal";
public leftVal : RealPort := new RealPort(0.0);
-- @ interface: type = input, name="lfRightVal";
public rightVal : RealPort := new RealPort(0.0);
-- @ interface: type = input, name="total_energy_used";
public total_energy_used : RealPort := new RealPort(0.0);
instance variables
-- @ interface: type = output, name="servoRightVal";
public servo_right_out : RealPort := new RealPort(0.0);
-- @ interface: type = output, name="servoLeftVal";
public servo_left_out : RealPort := new RealPort(0.0);
end HardwareInterface