GithubHelp home page GithubHelp logo

Rolling back code about alloy HOT 3 OPEN

GarrettBurroughs avatar GarrettBurroughs commented on September 28, 2024
Rolling back code

from alloy.

Comments (3)

GarrettBurroughs avatar GarrettBurroughs commented on September 28, 2024

Also, fallback code that can be toggled

thanks to @jackhymowitz for this idea

from alloy.

rafibaum avatar rafibaum commented on September 28, 2024

I had an idea for a "dumb" way of doing this in FRC. I believe the code deployment process is basically a glorified SFTP copy of a compiled jar file to a specific folder on the RIO which gets run automatically on boot. You could have the code swap around the jar files on an error before killing its own process to have the RIO re-run the jar file (now the new hopefully error-free jar).

from alloy.

rafibaum avatar rafibaum commented on September 28, 2024

Doing this in FTC is a bit more challenging as there's no "dumb" way of doing it. You could package each revision of the code as a separate jar which gets loaded on demand by a version-switching stub which talks directly to the Qualcomm libraries and swaps out the jars appropriately (although to the user it would just look like you're switching teleop/auto modes).

from alloy.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.