GithubHelp home page GithubHelp logo

Comments (1)

ounsworth avatar ounsworth commented on July 29, 2024

Question: how to make it idiot-proof to pull updates from github to the robot's pi to avoid oopsies in the pit at competition?

  • We want to avoid "oops, I checked in the Windows version" or "oops, I forgot to rebuild it after pulling"
  • Idea1: make sure the build.gradle file that's on master is set to build for raspbian, and add build.gradle to the gitignore so nobody accidentally checks it in with Windows turned on.
  • Idea2: check in some scripts that make it easier to work on the pi:
    • start.sh -- launch the vision process, will not persist across reboots. Include in here calling the utility to set contrast / brightness / autowhitebalance off for the Microsoft Lifecam.
    • stop.sh -- kills the vision process, whether started by start.sh or started at boot.
    • install.sh -- inserts the vision process into the system boot scripts.
    • uninstall.sh -- removes the vision process from the system boot scripts
    • update.sh -- stop.sh; git pull; gradlew build; start.sh
  • Idea3 (Ken):
    • stop.sh, start.sh, install.sh, uninstall.sh same as above. update.sh designed to run on a laptop, scp the jar over, and restart the process. Copy the old jar to *jar.bkup
  • Idea4 (Kevin): split update.sh into two separate parts: pullFromGit.sh and pushToPi.sh, where the push script does not require the laptop to have internet.

PS do some learning about systemd / sysvinit to do the start on boot stuff.

from trackerboxreloaded.

Related Issues (20)

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.