Closed AshMartian closed 2 months ago
One small thing I would change is instead of using a question mark, maybe use a ~ symbol since it means approximately
Good idea @Zomboy4313, implemented
This implementation is so cute! A battery indicator has been requested before, but I've been hesitant because of the same issues you ran into. Specifically: new voltages being sent not very often. I believe this to be a firmware limitation. It is also hard to be precise with the battery since there isn't a "fuel gauge" like a smartphone would have. Your curve idea seems accurate enough, though.
Just one nitpick: when no bots are authenticated, there is a bit of empty space between the header and content in the main page. If that is fixed, I will merge this.
I like this idea a lot. I wonder if we could replicate the "Vector is doing
Awesome ideas @kercre123! Thanks for removing the botStats element on no bots!
I also pondered more animations and expanding on the robot status, included is a blank face which we could make more gif animations for various status states! (the home charging png I made in photoshop) To be clear, Vector's firmware was not open sourced, correct? We can't push firmware updates or on board logic with the vector-cloud server?
I was also thinking that this makes the "Bot Settings" page obsolete, since it's much faster to click into the bots from the homepage, but felt removing that was outside scope and didn't want to interrupt any workflows utilizing that functionality.
Right, we can't change the robot firmware. Some parts were open-sourced, but we don't have enough of the code to fully build our own firmware. Even if we could build it, we'd have no way to sign it and run it on a production bot.
The animations were fully open-sourced. The more complex ones have sprite sequences which could be turned into GIFs. For regular animation files, a dev robot could be used to capture it.
The Bot Settings page is probably unneeded now.. I think I'll leave it in for now since all of the YouTube wire-pod setup tutorials still refer to it and such.
Oooo awesome tip on those sprite sequences! I'll keep them in mind and maybe raise a PR for an animated home/charging GIF
First off, thank you so much for this repository and keeping Vector alive 💚
I saw a closed PR on battery status #310, and thought it would be a nice way to learn how Wire Pod works. So I obsessively tackled creating a nice UX for displaying battery stats. This could resolve #309
/api-sdk/get_battery
goroutine 601 [running]: github.com/kercre123/wire-pod/chipper/pkg/wirepod/sdkapp.connTimer(0x1) /home/ash/wire-pod/chipper/pkg/wirepod/sdkapp/robot.go:149 +0x21c created by github.com/kercre123/wire-pod/chipper/pkg/wirepod/sdkapp.newRobot in goroutine 28 /home/ash/wire-pod/chipper/pkg/wirepod/sdkapp/robot.go:107 +0x4ec