# Coding

**URL:** https://xrp.discourse.group/c/coding/13.md

[Latest](https://xrp.discourse.group/latest.md) · [Categories](https://xrp.discourse.group/categories.md) · [Tags](https://xrp.discourse.group/tags.md)

---

## [About the Coding category](https://xrp.discourse.group/t/about-the-coding-category/116)

<div class="topic-metadata">

**Author:** [@ExperientialColin](https://xrp.discourse.group/u/ExperientialColin)\
**Replies:** 0

</div>

---

## [Urgent: XRP Code Editor SSL Certifcate expired!](https://xrp.discourse.group/t/urgent-xrp-code-editor-ssl-certifcate-expired/435)

<div class="topic-metadata">

**Author:** [@WayneSeltzer](https://xrp.discourse.group/u/WayneSeltzer)\
**Replies:** 7\
**Last updated:** [October 6, 2026, 11:30pm UTC](https://xrp.discourse.group/t/urgent-xrp-code-editor-ssl-certifcate-expired/435 "2026-10-06T23:30:29Z")

</div>

https://xrpcode.wpi.edu/ Issued On|Sunday, July 16, 2023 at 6:00:00 PM| Expires On|Tuesday, July 16, 2024 at 5:59:59 PM| I’m teaching a class right now and students are unable to use the XRP Code Editor. Looking for …

---

## [Problems with XRP Encoders and Distance](https://xrp.discourse.group/t/problems-with-xrp-encoders-and-distance/971)

<div class="topic-metadata">

**Author:** [@ILoveXRPs](https://xrp.discourse.group/u/ILoveXRPs)\
**Replies:** 0\
**Last updated:** [October 3, 2026, 6:55pm UTC](https://xrp.discourse.group/t/problems-with-xrp-encoders-and-distance/971 "2026-10-03T18:55:30Z")

</div>

Hi everyone! I was coding an XRP with WPILib 2027 alpha7 and everything works on the robot coding wise except for the encoders. I have put the encoders on the correct ports in the code (4 and 5 for left motor and 6 and 7…

---

## [XRP Code Editor Gamepad Blocks return zero](https://xrp.discourse.group/t/xrp-code-editor-gamepad-blocks-return-zero/827)

<div class="topic-metadata">

**Author:** [@xavier](https://xrp.discourse.group/u/xavier)\
**Replies:** 3\
**Last updated:** [July 30, 2026, 1:42pm UTC](https://xrp.discourse.group/t/xrp-code-editor-gamepad-blocks-return-zero/827 "2026-07-30T13:42:21Z")

</div>

I’ve connected the XRP Beta to my Windows 10 driver station over USB. Running the XRP Code Editor gamepad example doesn’t spin the wheels, and the above code prints “-0.0” over and over. I’ve tried WASD and multiple …

---

## [Feature Request: Custom Blocks with Python Backend](https://xrp.discourse.group/t/feature-request-custom-blocks-with-python-backend/958)

<div class="topic-metadata">

**Author:** [@Tinker](https://xrp.discourse.group/u/Tinker)\
**Replies:** 0\
**Last updated:** [July 15, 2026, 10:44pm UTC](https://xrp.discourse.group/t/feature-request-custom-blocks-with-python-backend/958 "2026-07-15T22:44:03Z")

</div>

Feature Request: Custom Blocks with Python Backend We’ve been playing Orbit Odyssey with a group of middle schoolers over the summer, and we are really liking the XRP platform (especially the XBS v2 printed parts!). It…

---

## [Can we use a Samsung Galaxy Tablet to program with (Blockly)](https://xrp.discourse.group/t/can-we-use-a-samsung-galaxy-tablet-to-program-with-blockly/955)

<div class="topic-metadata">

**Author:** [@FRC501\_BrianF](https://xrp.discourse.group/u/FRC501_BrianF)\
**Replies:** 3\
**Last updated:** [July 1, 2026, 6:20pm UTC](https://xrp.discourse.group/t/can-we-use-a-samsung-galaxy-tablet-to-program-with-blockly/955 "2026-07-01T18:20:58Z")

</div>

I can open xrpcode.wpi.edu and click connect to XRP. I can see the XRP in the list and click connect, but it times out and fails to connect. Is it even possible to use tablets? If so, what is the secret to get it to con…

---

## [Timer Block for Blockly IDE](https://xrp.discourse.group/t/timer-block-for-blockly-ide/878)

<div class="topic-metadata">

**Author:** [@Enmanuelgg05](https://xrp.discourse.group/u/Enmanuelgg05)\
**Replies:** 2\
**Last updated:** [June 20, 2026, 4:12pm UTC](https://xrp.discourse.group/t/timer-block-for-blockly-ide/878 "2026-06-20T16:12:38Z")

</div>

Hi all, first post here. I wanted to suggest that the developers add a Timer Block to the blockly programming environment. I want to teach students how to use the timer without having to jump into python. All the timer b…

---

## [XRP Web app and Gamepads](https://xrp.discourse.group/t/xrp-web-app-and-gamepads/942)

<div class="topic-metadata">

**Author:** [@schindm](https://xrp.discourse.group/u/schindm)\
**Replies:** 4\
**Last updated:** [June 8, 2026, 10:20pm UTC](https://xrp.discourse.group/t/xrp-web-app-and-gamepads/942 "2026-06-08T22:20:05Z")

</div>

Hi, I have been playing around with the XRP Web App ( XRP Web App ) trying to see what it has for new capabilities. For some reason, that I cannot figure out, the web app is not receiving input from a gamepad. I kno…

---

## [Accessing custom library from blockly](https://xrp.discourse.group/t/accessing-custom-library-from-blockly/940)

<div class="topic-metadata">

**Author:** [@schindm](https://xrp.discourse.group/u/schindm)\
**Replies:** 0\
**Last updated:** [May 28, 2026, 6:51pm UTC](https://xrp.discourse.group/t/accessing-custom-library-from-blockly/940 "2026-05-28T18:51:57Z")

</div>

Hi, Is it possible to write a custom function and make it available to a blockly program? For example, could I write a function for a mecanum base that takes the values of the left and right sticks on a controller and …

---

## [File caching issue - perhaps?](https://xrp.discourse.group/t/file-caching-issue-perhaps/939)

<div class="topic-metadata">

**Author:** [@schindm](https://xrp.discourse.group/u/schindm)\
**Replies:** 2\
**Last updated:** [May 27, 2026, 5:23pm UTC](https://xrp.discourse.group/t/file-caching-issue-perhaps/939 "2026-05-27T17:23:54Z")

</div>

I am testing out the latest version of the editor ( https://xrp-code-d-u01.wpi.edu/ ) and trying to learn about creating a library that can be shared with others. I am new to Python so I may have made some sort of mi…

---

## [XRP in Arduino IDE?](https://xrp.discourse.group/t/xrp-in-arduino-ide/890)

<div class="topic-metadata">

**Author:** [@dburbank](https://xrp.discourse.group/u/dburbank)\
**Replies:** 4\
**Last updated:** [January 7, 2026, 1:10pm UTC](https://xrp.discourse.group/t/xrp-in-arduino-ide/890 "2026-01-07T13:10:32Z")

</div>

Has anyone developed a library or other code to use the XRP through Arduino IDE? My program is designed around C++/Arduino IDE and I don’t have the time to teach two programming languages so I am having my class program …

---

## [Controlling XRP Over Serial](https://xrp.discourse.group/t/controlling-xrp-over-serial/897)

<div class="topic-metadata">

**Author:** [@pmartin\_ur](https://xrp.discourse.group/u/pmartin_ur)\
**Replies:** 1\
**Last updated:** [December 22, 2025, 7:38pm UTC](https://xrp.discourse.group/t/controlling-xrp-over-serial/897 "2025-12-22T19:38:09Z")

</div>

I am designing a revised XRP setup where the pico controller board performs all the interfacing and hardware management, but I would add on an RPi Zero 2 W as a more capable system for running autonomy algorithms. I want…

---

## [Line Following in Python](https://xrp.discourse.group/t/line-following-in-python/889)

<div class="topic-metadata">

**Author:** [@robotics](https://xrp.discourse.group/u/robotics)\
**Replies:** 2\
**Last updated:** [December 6, 2025, 10:58pm UTC](https://xrp.discourse.group/t/line-following-in-python/889 "2025-12-06T22:58:49Z")

</div>

Hello! I am trying to write an on/off style line following robot. I have tried various logics but none seem to work. Here’s what I’ve tried so far; I would really appreciate any help debugging! #this part is common betw…

---

## [Connecting via Bluetooth](https://xrp.discourse.group/t/connecting-via-bluetooth/877)

<div class="topic-metadata">

**Author:** [@robotics](https://xrp.discourse.group/u/robotics)\
**Replies:** 2\
**Last updated:** [October 24, 2025, 9:55pm UTC](https://xrp.discourse.group/t/connecting-via-bluetooth/877 "2025-10-24T21:55:52Z")

</div>

Hello, I am trying to connect my XRP via Bluetooth, but it keeps saying “Error connecting to the XRP. Please refresh this page and try again.” It works fine with USB and the PestoLink bluetooth, but I want to connect t…

---

## [Obstacle Avoidance - robot not turning properly](https://xrp.discourse.group/t/obstacle-avoidance-robot-not-turning-properly/874)

<div class="topic-metadata">

**Author:** [@robotics](https://xrp.discourse.group/u/robotics)\
**Replies:** 3\
**Last updated:** [October 24, 2025, 12:17am UTC](https://xrp.discourse.group/t/obstacle-avoidance-robot-not-turning-properly/874 "2025-10-24T00:17:57Z")

</div>

Hello! I am trying to program the XRP robot following the website’s curriculum. I am currently on the obstacle avoidance section and this is the code I have: When I try this, the robot detects the obstacle (although …

---

## [Huskylens blocly](https://xrp.discourse.group/t/huskylens-blocly/864)

<div class="topic-metadata">

**Author:** [@Jorg](https://xrp.discourse.group/u/Jorg)\
**Replies:** 2\
**Last updated:** [October 13, 2025, 4:03pm UTC](https://xrp.discourse.group/t/huskylens-blocly/864 "2025-10-13T16:03:39Z")

</div>

Hi all, Last year i used microbit maqueens for my students to learn about vision. My students are 15 years old and like the blockly environment very much. The XRP robot is more advanced as the maqueen, but i don’t see a…

---

## [Grabbing keystrokes from keyboard](https://xrp.discourse.group/t/grabbing-keystrokes-from-keyboard/839)

<div class="topic-metadata">

**Author:** [@FizzDude](https://xrp.discourse.group/u/FizzDude)\
**Replies:** 7\
**Last updated:** [August 16, 2025, 1:47am UTC](https://xrp.discourse.group/t/grabbing-keystrokes-from-keyboard/839 "2025-08-16T01:47:21Z")

</div>

I am writing simple Python code to control an XRP robot using the xrpcode.wpi.edu web browser interface. I want to control movement of the robot with a simple “wasd” scheme of keystrokes - forward, turn left, backward, t…

---

## [Deferring XRPLib and micropython pushes, even when they're opt-in](https://xrp.discourse.group/t/deferring-xrplib-and-micropython-pushes-even-when-theyre-opt-in/830)

<div class="topic-metadata">

**Author:** [@kstanton](https://xrp.discourse.group/u/kstanton)\
**Replies:** 4\
**Last updated:** [August 7, 2025, 8:50pm UTC](https://xrp.discourse.group/t/deferring-xrplib-and-micropython-pushes-even-when-theyre-opt-in/830 "2025-08-07T20:50:28Z")

</div>

Greetings. We have close to 100 freshmen engineering students using the XRP robot each year. We’ve swapped out some sensors (and had to I2C daisy-chain a couple), and thus had to make a few changes to XRPLib and create …

---

## [Keep getting "XRP Connecting" message after I paired the XRP](https://xrp.discourse.group/t/keep-getting-xrp-connecting-message-after-i-paired-the-xrp/817)

<div class="topic-metadata">

**Author:** [@arafieymehr](https://xrp.discourse.group/u/arafieymehr)\
**Replies:** 3\
**Last updated:** [August 1, 2025, 10:36pm UTC](https://xrp.discourse.group/t/keep-getting-xrp-connecting-message-after-i-paired-the-xrp/817 "2025-08-01T22:36:31Z")

</div>

Hello, I haven’t used any of our XRPs since my last class that I offered some of our local students. Yesterday, I went to use XRP and noticed that after I selected an XRP and paired it, a new window pops up in a loop th…

---

## [Bluetooth Connections: Pestolink to XRP editor transition](https://xrp.discourse.group/t/bluetooth-connections-pestolink-to-xrp-editor-transition/821)

<div class="topic-metadata">

**Author:** [@jemalv](https://xrp.discourse.group/u/jemalv)\
**Replies:** 1\
**Last updated:** [August 1, 2025, 4:01pm UTC](https://xrp.discourse.group/t/bluetooth-connections-pestolink-to-xrp-editor-transition/821 "2025-08-01T16:01:02Z")

</div>

We are running a camp and have successfully connected to Pestolink and XRP code editor via bluetooth. When running matches, we have encountered a problem with disconnecting from Pestolink and trying to connect back to th…

---

## [Control board mounted vertically](https://xrp.discourse.group/t/control-board-mounted-vertically/785)

<div class="topic-metadata">

**Author:** [@Debbie386](https://xrp.discourse.group/u/Debbie386)\
**Replies:** 1\
**Last updated:** [June 16, 2025, 4:19pm UTC](https://xrp.discourse.group/t/control-board-mounted-vertically/785 "2025-06-16T16:19:56Z")

</div>

At the FIRST Championships in April I checkout the Orbit Odyssey exhibit and I was given a gift of a miniXRP body. I bought a DIY kit with the new control board and built the miniXRP. Everything worked great. EXCEPT th…

---

## [Is it possible to use the second core as a new thread?](https://xrp.discourse.group/t/is-it-possible-to-use-the-second-core-as-a-new-thread/782)

<div class="topic-metadata">

**Author:** [@AlanKilian](https://xrp.discourse.group/u/AlanKilian)\
**Replies:** 1\
**Last updated:** [June 8, 2025, 4:23pm UTC](https://xrp.discourse.group/t/is-it-possible-to-use-the-second-core-as-a-new-thread/782 "2025-06-08T16:23:49Z")

</div>

When I start a thread on the second core with: second\_thread = \_thread.start\_new\_thread(core1\_thread, ()) (I’m not posting the full code so no one else accidentally runs it. You can imagine the rest of the simple code …

---

## [Should this code work as designed?](https://xrp.discourse.group/t/should-this-code-work-as-designed/690)

<div class="topic-metadata">

**Author:** [@arafieymehr](https://xrp.discourse.group/u/arafieymehr)\
**Replies:** 12\
**Last updated:** [May 28, 2025, 4:21pm UTC](https://xrp.discourse.group/t/should-this-code-work-as-designed/690 "2025-05-28T16:21:07Z")

</div>

Hello, Assuming that I understood the “Set Speed” blockly instruction, the following instructions should move the XRP 10 cm in one second: Set Speed Left 10 cm/s Right 10 cm/s Sleep 1 I tried the code with a couple o…

---

## [Web Server with XRP Version 1](https://xrp.discourse.group/t/web-server-with-xrp-version-1/762)

<div class="topic-metadata">

**Author:** [@MichelleE2](https://xrp.discourse.group/u/MichelleE2)\
**Replies:** 8\
**Last updated:** [May 28, 2025, 4:10pm UTC](https://xrp.discourse.group/t/web-server-with-xrp-version-1/762 "2025-05-28T16:10:46Z")

</div>

Having trouble getting a webserver going on Version 1 of the XRP using the webserver\_example.py I suspect I’m just doing something stupid. Is there a tutorial or video out there that walks through it? I tried both runn…

---

## [XRPCode Mod Manager](https://xrp.discourse.group/t/xrpcode-mod-manager/719)

<div class="topic-metadata">

**Author:** [@Advay](https://xrp.discourse.group/u/Advay)\
**Replies:** 1\
**Last updated:** [May 6, 2025, 3:19pm UTC](https://xrp.discourse.group/t/xrpcode-mod-manager/719 "2025-05-06T15:19:43Z")

</div>

The Problem XRPCode serves as a nice and intuitive editor for kids. However, the Blockly portion of XRPCode is heavily limited by the number of blocks available for use: for instance, it would not be possible for me to e…

---

## [How Long Until Gamepad Blocks](https://xrp.discourse.group/t/how-long-until-gamepad-blocks/718)

<div class="topic-metadata">

**Author:** [@Advay](https://xrp.discourse.group/u/Advay)\
**Replies:** 1\
**Last updated:** [May 6, 2025, 3:12pm UTC](https://xrp.discourse.group/t/how-long-until-gamepad-blocks/718 "2025-05-06T15:12:56Z")

</div>

IIRC, there was some code for adding gamepad support to XRPCode(though my memory may be mistaken). Is this a planned feature, and if so, how long will it take to be implemented? Just want to check to see if it’s worth it…

---

## [MemoryError within the main.py generated by xrpcode.wpi.edu](https://xrp.discourse.group/t/memoryerror-within-the-main-py-generated-by-xrpcode-wpi-edu/700)

<div class="topic-metadata">

**Author:** [@kstanton](https://xrp.discourse.group/u/kstanton)\
**Replies:** 5\
**Last updated:** [April 28, 2025, 9:00pm UTC](https://xrp.discourse.group/t/memoryerror-within-the-main-py-generated-by-xrpcode-wpi-edu/700 "2025-04-28T21:00:00Z")

</div>

When the micropython program gets over 500 lines (students are coding a state machine to solve a sequence of challenges in a maze), several are now seeing the following error while using xrpcode.wpi.edu, typically for ev…

---

## [Any way to disable WiFi AP for demos?](https://xrp.discourse.group/t/any-way-to-disable-wifi-ap-for-demos/683)

<div class="topic-metadata">

**Author:** [@gof](https://xrp.discourse.group/u/gof)\
**Replies:** 1\
**Last updated:** [April 14, 2025, 11:45pm UTC](https://xrp.discourse.group/t/any-way-to-disable-wifi-ap-for-demos/683 "2025-04-14T23:45:33Z")

</div>

Pretty simple question. Is there any way to disable the WiFi Access Point for demos in venues what prohibit creating Access Points (e.g. FTC Tournaments)? Code is created ahead of time, uploaded, and works upon power up…

---

## [Error after updaitng XRPLib](https://xrp.discourse.group/t/error-after-updaitng-xrplib/684)

<div class="topic-metadata">

**Author:** [@shurik179](https://xrp.discourse.group/u/shurik179)\
**Replies:** 2\
**Last updated:** [April 14, 2025, 5:02pm UTC](https://xrp.discourse.group/t/error-after-updaitng-xrplib/684 "2025-04-14T17:02:15Z")

</div>

I just got my brand new XRP DIY kit (the new one, not beta). Upon connecting it to XRP code IDE, it prompted me to update both the Micropython and the XRPLib; I clicked “yes”, so it successfully updated both (micropython…

---

## [XRP Code able to interrupt a running program in Shell?](https://xrp.discourse.group/t/xrp-code-able-to-interrupt-a-running-program-in-shell/664)

<div class="topic-metadata">

**Author:** [@csunwc](https://xrp.discourse.group/u/csunwc)\
**Replies:** 2\
**Last updated:** [March 28, 2025, 5:18pm UTC](https://xrp.discourse.group/t/xrp-code-able-to-interrupt-a-running-program-in-shell/664 "2025-03-28T17:18:36Z")

</div>

Is XRP Code able to interrupt a running program in Shell? When I have a short test program running inside the Shell panel, I tried Ctrl-c but I am NOT able to interrupt the program. In fact, I tried Ctrl-d, Ctrl-z, and …

[Next page](https://xrp.discourse.group/c/coding/13.md?page=1)
