-
Notifications
You must be signed in to change notification settings - Fork 0
/
variableType.go
55 lines (48 loc) · 1.47 KB
/
variableType.go
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
55
// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package fbtypes
import "strconv"
type variableType int8
const (
/// unknown type
variableTypeUNKNOWN variableType = -1
/// base type
variableTypeBASE variableType = 0
/// velocity type
variableTypeVELOCITY variableType = 1
/// homing type
variableTypeHOMING variableType = 2
/// probe type
variableTypePROBE variableType = 3
/// torque/force type
variableTypeTORQUE_FORCE variableType = 4
/// safe motion
variableTypeSAFE_MOTION variableType = 5
/// user PDO
variableTypeUSER_PDO variableType = 6
)
var EnumNamesvariableType = map[variableType]string{
variableTypeUNKNOWN: "UNKNOWN",
variableTypeBASE: "BASE",
variableTypeVELOCITY: "VELOCITY",
variableTypeHOMING: "HOMING",
variableTypePROBE: "PROBE",
variableTypeTORQUE_FORCE: "TORQUE_FORCE",
variableTypeSAFE_MOTION: "SAFE_MOTION",
variableTypeUSER_PDO: "USER_PDO",
}
var EnumValuesvariableType = map[string]variableType{
"UNKNOWN": variableTypeUNKNOWN,
"BASE": variableTypeBASE,
"VELOCITY": variableTypeVELOCITY,
"HOMING": variableTypeHOMING,
"PROBE": variableTypePROBE,
"TORQUE_FORCE": variableTypeTORQUE_FORCE,
"SAFE_MOTION": variableTypeSAFE_MOTION,
"USER_PDO": variableTypeUSER_PDO,
}
func (v variableType) String() string {
if s, ok := EnumNamesvariableType[v]; ok {
return s
}
return "variableType(" + strconv.FormatInt(int64(v), 10) + ")"
}