-
Notifications
You must be signed in to change notification settings - Fork 0
/
modemdriver.orogen
47 lines (38 loc) · 1.23 KB
/
modemdriver.orogen
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
name "modemdriver"
using_library "modemdriver_tritech"
using_task_library "canbus"
using_task_library 'sysmon'
import_types_from "modemdriver_tritech/AckDriverStats.hpp"
import_types_from "modemdriverTypes_.hpp"
import_types_from 'base'
import_types_from "canbus"
import_types_from "sysmon"
task_context "Modem" do
needs_configuration
input_port "data_in", "modemdriver/modem_message"
output_port "data_out", "modemdriver/modem_message"
#Time to wait between requesting range-measurments
property("distance_request_interval","double", 0.0).dynamic
#todo check datatype, the distance to the surface-modem
output_port("distance","double")
output_port("out_modem_substates", "sysmon/ModemSubstate")
periodic 0.1
end
task_context "ModemSerial" do
subclasses 'Modem'
property "serial_device", "/std/string"
periodic 0.1
end
task_context "ModemCanbus" do
subclasses 'Modem'
input_port "can_in", "/canbus/Message"
output_port "can_out", "/canbus/Message"
output_port "stats", "modemdriver/AckDriverStats"
periodic 0.1
end
deployment 'modemdriver_cantest' do
task('cantest', "canbus::Task").
periodic(0.1)
task('modemdriver', "ModemCanbus").
periodic(0.1)
end