I am trying to port the ‘gearsbot’ demo to RobotPy including full physics support for all subsystems.
… not just the drivetrain that is already included in the examples
The first major hurdle is the elevator subsystem that uses a linear potentiometer for feedback. Now I am not yet at the PID side of things. Just trying to get the physics.py to understand and link the movement of the motor to an analog value representing the elevator height.
I have a basic motor movement translated to height/voltage calculation, but when I try to set the value/voltage (I have tried both) on the analog input, nothing happens. No values get shown in the simulation gui and nothing shows up coming into shuffleboard from the sensor.
Does anyone have an example of RobotPy physics.py that connects to an analog input? Note that while the analog gyro is an analog input, it is actually a special case in the code and different that a standard analog input.
Thank You