Updates for the new IDE XRPWeb & new version numbers#98
Conversation
Sends data via bluetooth for the dashboard.
XPP support added and switched over gamepad and dashboard to support the new protocol
Cleaned up the XPP code. Got rid of commands.
Puppet protocol and Dashboard added.
Added to have the puppet protocol work over USB serial as well as Bluetooth.
Try's to free servo 3&4 in case it is a new board
Allows the user to let the connection, be AUTO, BLE, or USB_STDIO First call to the singleton
updated version number
Newer versions of micropython don't accept 03 for ctrl-c handler just 3. Since XRPLib stays in memory not clearing the custom variables, meant they were not updated on the next run.
Give time for the pull_up to take place before a first call to get the value.
| self._puppet.set_variable('$encoder.4', self.motor_four.get_position_counts()) | ||
|
|
||
| # Current sensor data | ||
| #self._puppet.set_variable('$current.left', self.CurrLADC.read_u16()) |
There was a problem hiding this comment.
Is there a reason the current reads are commented?
There was a problem hiding this comment.
There was never an implementation for current. It can not just be read, there is a timing part to getting the current.
There was a problem hiding this comment.
My question was more one of code cleanliness - if the plan is to add this functionality in a later pr since its less simple thats fine too
|
https://github.com/Open-STEM/XPPClient |
|
We want to get the current sensors implemented. I put in a feature request to get it implemented and a task to un comment in the dashboard once it is implemented. |
XRPWeb has a different protocol for the gamepad and dashboard. It now uses the XRP Puppet Protocol.
Plus a few other minor fixes.
Moved the version numbers into the 2.2 range.