Can Ping values be represented graphically?
lardom
Posts: 1,659
I'm working on a project that controls two steppers differentially. The left and right motor objects are in separate cogs. They call a Ping object which returns values that get evaluated by 'case' in the motor objects. If I comment out the call to Ping and write the value in myself the motors work perfectly. I get weird behavior from the Ping like wheels chattering and locking up. I even placed a delay of 1.5 seconds between Ping returns to see what would happen.
I want to design an object that works similar to a joystick because I'm wondering if I'm missing something when debugging on the PST. Is there a similar debugging method?
I want to design an object that works similar to a joystick because I'm wondering if I'm missing something when debugging on the PST. Is there a similar debugging method?
Comments
You could certainly use one of the TV or VGA objects for a debug display, particularly if you have extra I/O pins. I've used Cluso99's 1-pin TV driver for this since black & white is all I'd need for debugging. You can do graphics if you have enough memory for the buffer or a text display if you only have enough memory for a text buffer. You can use the graphics characters in the ROM font for simple drawing and graphs. It's rough, but works.