added some input logging
This commit is contained in:
parent
42a4589732
commit
48e2ea0ac3
@ -249,6 +249,9 @@ class Sim(Node):
|
|||||||
def call(self, msg):
|
def call(self, msg):
|
||||||
global controllerInput
|
global controllerInput
|
||||||
controllerInput = max(min(msg.data,100),0)
|
controllerInput = max(min(msg.data,100),0)
|
||||||
|
print("Controller sent " + str(msg.data))
|
||||||
|
if controllerInput != msg.data:
|
||||||
|
print("Clamped out of range input data")
|
||||||
|
|
||||||
def callback(self):
|
def callback(self):
|
||||||
msg = Float64()
|
msg = Float64()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user