Hi everybody!
Any idea to show a cool progress bar in vex controller display? I know that the ASCII characters in the controller are so limited.
Thanks
Hi everybody!
Any idea to show a cool progress bar in vex controller display? I know that the ASCII characters in the controller are so limited.
Thanks
What do you want the progress bar to do?
It is for a programming prototype that is capable of indicating the tension level of the catapult based on a quick initial calibration.
Depending on the inclination of the catapult and the force value of the motor, it is able to find out what phase of its travel the gear is in.
What you can do is display a number that changes every time the tension changes
Yes, that is the solution we have so far but we were concerned about knowing if it is possible to improve it aesthetically to see if it can be made more visual.
It would be ideal to be able to put increment bars o circles.
That’s kinda hard, and my solution is kinda janky, but until we have a better idea:
What you have is your circle. On top of that you have a bunch of rectangles the same color as the background of the controller (black on this diagram). At 0%, all the rectangles are on top of the circle, so you can’t see it. At 50%, only half the rectangles are there, revealing half your circle.
When the value of what you’re measuring is below a certain percent, then one of the rectangles appear (like if % < 10, rectangle A(position) or smth like that). However, this function would have yo be repeated for each rectangle, which might use a lot of code space
Wow, that’s an impressive solution at first glance. But I understand that you can only use ASCII characters without being able to modify layers or the rotation of the characters
Oops…
Well, I can’t think about how to do a circle one, but you can just use a bunch of "i"s or "l"s to make a bar.
Like for 50% have 25 "l"s or some multiplier
0% [lllllllllllllll_________ ] 100%
If you figure it out any chance you can post your code? This sounds like an amazing idea to have on robots. But im asking as a coach :-p.
In another thread I asked about what the character sets are for the three platforms. (VIQ-G1, VIQ-G2, V5). James came back and said what the font was.
If you go to the glyphs section there is a circle and a filled in circle.
So you could do your horizontal bar chart with the two kinds of dots. You could also go with open circle, closed circle alternating to give you some easier sighting.
Maybe this will help on the design aesthetics. Good luck!
Er, except the V5 controller is more like an IQ generation 1 brain and has a much simplified character set. Notosans is used on the V5 brain but not the controller.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.