MCPcopy Create free account
hub / github.com/amov-lab/Prometheus / sign_function

Function sign_function

Modules/control/include/math_utils.h:111–125  ·  view source on GitHub ↗

sign_function

Source from the content-addressed store, hash-verified

109
110//sign_function
111float sign_function(float data)
112{
113 if(data>0)
114 {
115 return 1.0;
116 }
117 else if(data<0)
118 {
119 return -1.0;
120 }
121 else if(data == 0)
122 {
123 return 0.0;
124 }
125}
126
127// min function
128float min(float data1,float data2)

Callers 1

_velocityControllerMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected