GithubHelp home page GithubHelp logo

dsktop's People

Contributors

noahandrews avatar wardbenjamin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

dsktop's Issues

Telemetry dashboard

Where by "telemetry" I don't just mean the feature built into the SDK, but a more capable version that sends arbitrary data over websockets.

Gamepad support

You'll need to implement RobotCoreGamepadManager.

My suggestion is that you convert Gamepad into an abstract class that will handle all of the Robocol conversion stuff, but leave the interactions with the physical gamepad up to subclasses.

Assuming that we're using a library that requires us to poll the gamepads (as opposed to the event driven model we have in the Android gamepad API), I think we'll need to have a loop in its own thread that's updating the gamepad continuously. Polling the gamepads every time we want to send data sounds OK if it's fast enough, but probably isn't a good option if we want to set the "User" via the usual button combo.

This is the current code to actually send the joystick data to the RC. It can be tweaked, ofc. It gets called every 40 ms.

// send gamepads if we have the info to do so (which will only be on the DS)
if(parameters.gamepadManager != null) {
    long now = MyApp.Companion.getRuntime().msLong();

    for (Gamepad gamepad : parameters.gamepadManager.getGamepadsForTransmission()) {

    // don't send stale gamepads
        if (now - gamepad.timestamp > GAMEPAD_UPDATE_THRESHOLD && gamepad.atRest()) {
            continue;
        }

        gamepad.setSequenceNumber();
        RobocolDatagram packetGamepad = new RobocolDatagram(gamepad);
        send(packetGamepad);
     }
}

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.