-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathopencascade.comp
75 lines (36 loc) · 1.4 KB
/
opencascade.comp
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
48
49
50
51
52
53
54
component opencascade "opencascade component";
description
"""
opencascade component
Preprocess slogan examples :
/opt/linuxcnc/bin/halcompile --preprocess /opt/linuxcnc/src/hal/components/opencascade.comp
/opt/linuxcnc/bin/halcompile --preprocess /home/user/Desktop/Linux-Embedded/linux-hal/halcompile-opencascade/opencascade.comp
Usage :
This file can only be used for --preprocess purposes. Direct --compile will fail.
The makefile uses the preproccesed .c and .o file to produce the .so library.
Then in halview : loadrt opencascade
""";
author "Skynet 2021";
license "GPLv2 or greater";
option singleton yes;
// *******************************************************
// Template pins.
// *******************************************************
pin out bit testpin_bit_out "testpin";
pin in bit testpin_bit_in "testpin";
pin out float testpin_float_out "testpin";
pin in float testpin_float_in "testpin";
param rw float testparam "testpin";
function _;
;;
#include "rtapi_math.h"
#include "kinematic.h"
double ms;
double seconds;
double totalnsec;
struct data d; // Component wide data bucket
FUNCTION(_) {
totalnsec = totalnsec + period;
ms = totalnsec * 0.000001; // rtapi_print_msg(RTAPI_MSG_ERR,"totalms: %f \n", totalms);
seconds = totalnsec * 0.000000001; // rtapi_print_msg(RTAPI_MSG_ERR,"totalseconds: %f \n", totalseconds);
}