Giter Site home page Giter Site logo

Comments (5)

AustinShalit avatar AustinShalit commented on June 23, 2024

Could we flag the selected value as persistent to achieve the result?

from allwpilib.

ThadHouse avatar ThadHouse commented on June 23, 2024

Persistent values wouldn't work for this in certain cases. For instance, if the persistent value is set to mode 2, but the SmartDashboard selects mode 3 for the next match, mode 2 would be the one selected. This is because when a client connects to a server it overwrites any client entries with ones the server has.

One way to solve this would be to use SetDefault on the RobRio side to set the value at startup, and then a change in the NetworkTables protocol to allow certain values to be flagged as client override, where if the server is sending a value on initial connection that exists on the client already, the client ignores it, and sends the proper value back to the server.

@PeterJohnson what do you think?

from allwpilib.

bradamiller avatar bradamiller commented on June 23, 2024

I was thinking that if the user explicitly set the value in the UI in the dashboard, they meant it to have that value and it shouldn't get overridden by the default value that is in the robot on startup.

from allwpilib.

AustinShalit avatar AustinShalit commented on June 23, 2024

Closes with wpilibsuite/SmartDashboard#6

from allwpilib.

PeterJohnson avatar PeterJohnson commented on June 23, 2024

wpilibsuite/SmartDashboard#6 has been merged.

from allwpilib.

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.