Relative Content

Tag Archive for crobotics

GHI electronics coding fix. Variable is out of scope

Im trying to write a basic robot function that moves servo when buttons are pressed. I have the thing debugging to the log that it turns on and off using button presses and a bool. Now i cant get the servo variable to get into scope. Towards the botttom of the script where the servo is writing to the device is where im having trouble. It wont do device.write. Device isnt in scope. Ive tried adding static to the variable.