GithubHelp home page GithubHelp logo

techplexengineer / ng-easyj2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2.67 MB

A 12 step system for FRC command based robot code generation

Home Page: https://ng-easyj2.team4909.org/

JavaScript 84.50% Makefile 0.27% CSS 0.63% HTML 11.12% Java 3.48%

ng-easyj2's People

Contributors

techplexengineer avatar

Watchers

 avatar  avatar

ng-easyj2's Issues

Tooltips

Add tooltips for WPIlib blocks.

Validate identifiers

Need to validate user identifiers.
Some can be coerced, some need to be errored. Coerce whenever possible.
Need to use a combination of the Blockly naming engine and regexp.

From the ZR People:

Blockly.Blocks.requireInFunction = function() {
    if (!this.workspace) {
        // Block has been deleted.
        return;
    }
    if (this.getSurroundParent()) {
        this.setWarningText(null);
    } else {
        this.setWarningText('Place this block inside a function.');
    }
}

Blockly.Blocks.CNameValidator = function(newVar) {
    //Regex tests whether name is a valid C identifier
    if(!new RegExp('^[a-zA-Z_][a-zA-Z0-9_]*$').test(newVar)) {
        return null;
    }
  //Don't allow names that could be used as loop counters
  if(new RegExp('^index[0-9]+$').test(newVar)) {
    return null;
  }
    //Avoid clobbering global names
    if(Blockly.zr_cpp.RESERVED_WORDS_.indexOf(',' + newVar + ',') !== -1) {
        return null;
    };
    return newVar;
};

One can change steps and have invalid data

Steps to reproduce:

  1. Complete some number of steps
  2. got back to an earlier step (using progress bar)
  3. make an invalid selection
  4. go back ahead to later step (using progress bar)

Delete subsystem, Actuator and sensor assignment broken

Steps to reproduce

  1. Create a subsystem (Step 7)
  2. Assign some sensors and actuators to it (Step 8)
  3. Go back to (Step 7) and remove the subsystem
  4. Go to Step 8 and notice how the dropdowns are now blank.

The dropdowns should go back to "Select a subsystem"

Save -- Session in progress

We should alert the user(when they press the "start a new project" button) if there is already a session started. Meaning someone has partially filled the fields.

Upon this error state we should let them save or discard the previous work.

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.