Giter Site home page Giter Site logo

Comments (5)

Starlight220 avatar Starlight220 commented on June 23, 2024

I would be happy to implement this in Java, but I disagree with a few points:
I think the current DS class would need a lot of added functionality to do this, said functionality already exists in RobotBase. Adding it to the DS would either cause duplicates or a buggy transition.

independently of user code

Is there a way to write functional robot code without using RobotBase? If not, and the RobotBase class is trivial just like the DS class, then what problem is there with implementing it there? The functionality almost exists.

As I understand it, the wanted functionality is pretty much disabled/auto/teleop init/periodic, just as a callback and not in the Robot functions.

from allwpilib.

calcmogul avatar calcmogul commented on June 23, 2024

What kind of stuff would we be running asynchronously? Is the idea that we'd have gyro calibration, for example, happen on the library side on DS transition, and the user wouldn't see it?

from allwpilib.

Starlight220 avatar Starlight220 commented on June 23, 2024

I think this would be useful mostly for team libraries, and/or decentralization of the Robot class.

from allwpilib.

calcmogul avatar calcmogul commented on June 23, 2024

You can already get that "decentralization" by making a MySubsystem.teleopInit() function and call that in TimedRobot.telopInit(), and it's much easier to reason about and debug. Team libraries could do the same thing. Are there specific kinds of libraries you had in mind?

As @prateekma pointed out on the FRC Discord, a callback is useful when you don't have access to the state change, but you do in this case via the TimedRobot init() methods.

from allwpilib.

Starlight220 avatar Starlight220 commented on June 23, 2024

not really, it's just a possible reason I thought of. If this isn't a useful feature anymore, close this issue.

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.