So I see there is a new version of MicroPython available.
The comments state “It also syncs up with the new IDE XRPCode V2 (XRPWeb in the repo)”.
What is XRPWeb? Is this a new update for, or alternative to https://xrpcode.wpi.edu/? If so, how do you run it?
Yes, XRPWeb is the next version of XRPCode. It is at https://xrpcode.wpi.edu/staging/
It is in beta, please report any problems you find.
1 Like
Just tried the Dashboard. Thanks for this useful enhancement!|
Here’s my self-guided experiment,
Opened the Dashboard, added the Rangefinder sensor, but the data isn’t updating:
Oops. I see there’s Dashboard section in the menu.
Added “Dashboard start all”:
And, now there’s Rangefinder data:
Here’s what shows up in the generated Python:
from XRPLib.dashboard import Dashboard
from XRPLib.rangefinder import Rangefinder
import time
distance = None
dashboard = Dashboard.get_default_dashboard()
rangefinder = Rangefinder.get_default_rangefinder()
dashboard.start()
while True:
distance = rangefinder.distance()
print(distance)
time.sleep(0.5)
And, now I see that all that is needed is “Dashboard start all”
to get sensor data:
Expected to see floating point values for the Reflectance sensors instead of
just 0 and 1.
Thank you @WayneSeltzer for solving some of my questions before I got there.
@Fgrossman I no longer see the example files in the new interface nor the folder with the library files. How do I get to those? I often use them for reference.
I also have the same comment as Wayne regarding the reflectance. 0 and 1 isn’t very useful especially since, in my testing, the values I’m getting don’t make much sense. Perhaps the invisible threshold between 0 and 1 doesn’t work with the lighting in my room.
Overall, this is a major improvement. Thanks!
Thank you both for the feedback. The reflectance sensor was changed recently and as you said does not make sense. We will move that back to a floating point number.
@Debbie386 can you explain where you are missing the examples? We didn’t mean to remove any. One confusion is that when you log into Google you only see the files that are up on the Google Drive. If that is the reason, then that is good input for us to discuss.
Yes, that’s my confusion. I logged into google drive because I really want to make sure my files are stored in a location beyond the device.
When I’m signed into google drive, I see all of the files on the device but I don’t see the XRPExamples and lib directories.
When I sign out of google drive, I see the same files plus the XRPExamples and lib directories.
I also see a “gusers” folder which, when explanded shows some but not all(???) of the files I see when logged into google drive. Is there documentation to explain what I’m seeing here in the screenshot below?
There are only 3 files listed under the XRPCodeBackup folder buried under gusers. But if I were to log into google, I would see all of the .py and .blocks files. Why are only 3 of them here?
If I wanted to modify the led_demo.py file, which one would I edit?
What process should we use for creating / editing and storing files? Should a user always be signed into google? Or should they do all their work not signed in and only sign in when done in the hopes their modificiations are copies to Drive?
It also appears that the google drive backed up files end up in “My Drive → XRPCode” which isn’t particularly useful since that folder most likely isn’t visible to other team members. I would like to have the option to choose where on Drive I back up the files.
This is very non-intuitive.
The idea is that you could use any XRP robot to run you programs on when you are logged into the Google account. But, the actual programs need to be on the XRP when they get run. So, when you run a program it is copied over to the XRP under the gusers including any directory information.
There is a new version of XRPCode up on staging. It fixes the Dashboard reflectance values. It also fixes a few bluetooth problems we were having with the beta board.
As you have seen the backup is a way to get to the Example files. We are looking at a better solution to copy files from the XRP robot to the Google drive.
Thank you for your help.