@@ -13,17 +13,17 @@ const pid = DiscretePIDs.DiscretePID(; K = T(1), Ti = 1, Td = false, Ts = 1)
13
13
DiscretePIDs. calculate_control! (pid, r, y, uff):: T
14
14
end
15
15
16
- function set_K! (K:: T , r:: T , y:: T ):: Cvoid
16
+ @ccallable function set_K! (K:: T , r:: T , y:: T ):: Cvoid
17
17
DiscretePIDs. set_K! (pid, K, r, y)
18
18
nothing
19
19
end
20
20
21
- function set_Ti! (Ti:: T ):: Cvoid
21
+ @ccallable function set_Ti! (Ti:: T ):: Cvoid
22
22
DiscretePIDs. set_Ti! (pid, Ti)
23
23
nothing
24
24
end
25
25
26
- function set_Td! (Td:: T ):: Cvoid
26
+ @ccallable function set_Td! (Td:: T ):: Cvoid
27
27
DiscretePIDs. set_Td! (pid, Td)
28
28
nothing
29
29
end
33
33
nothing
34
34
end
35
35
36
- @ccallable function main ():: Cint
37
- println (Core. stdout , " I'm alive and well" )
38
- u = calculate_control! (0.0 , 0.0 , 0.0 )
39
- println (Core. stdout , u)
36
+ # @ccallable function main()::Cint
37
+ # println(Core.stdout, "I'm alive and well")
38
+ # u = calculate_control!(0.0, 0.0, 0.0)
39
+ # println(Core.stdout, u)
40
40
41
- Cint (0 )
42
- end
41
+ # Cint(0)
42
+ # end
43
43
44
44
45
45
end
0 commit comments