Easily program your FRC robot with the block programming tool Blockly
My goal is to allow FRC Rookies and new programmers to get their feet wet with some Java code using the WPI Robotics Library.
A recent build of the EasyJ4FRC environment is available here:
- Python 2.7+ (but not Python3)
- Webserver with PHP
Building & Hacking
- Create a directory to work in I'll call mine
- Download a copy of EasyJ4FRC and
- unzip it into a folder within
working, I'll call mine
- Download a copy of the Closure library
master.zipit into a folder in
working, it must be called
- Go into the
EasyJ4FRCfolder and try running the build script(build.py) now. This will generate the conpressed version of Blockly.
- Make the
workingfolder web accessible. Apache if you are on linux, or XAMPP otherwhise. You'll need PHP
- Now using your web server, open
apps/robotbuilder/index.phpand begin hacking!
Note: I have only tested these instructions on Linux.
- Custom input checkers (ie: Joystick button valid values are 1-12) [EasyJ.Checker.*]
- Change the root block to be two function blocks teleop & auto
- Loadable Demos
- Help Pages
- About page
- Settings Page
- Alter package [x]
- Alter Robot Class [x]
- Ensure entered package and class are valid
- Command Base
- multiple class tabs
- add new subsystems
- add new commands
- Easier deploys (update toolbox, update path) (rsync in make)
- Fix digital & analog 'Get' blocks
- Test, Test, Test - Make sure the blocks generate good code
- Add more blocks
- Gyro [x]
- Smart Dashboard
- Pneumatics [x]
- Compressor [x]
- Solenoids [x]
- Pressure switch (part of compressor object)
- Digital Output [x]
- Relay [x]
- Iterative Robot [x]
- Make types more like Java types (double, float, int, long ...)
- Save/Load (localstorage)
- Google Drive?
- To file?
- Could we dump out a netbeans project?
- make a desktop version
- make a cool logo
- handle variable rename
- hide blocks until variable exists (disable instead of hide)
- set warning on orphanned blocks
- change "Declare" to "Create"
- Add more examples
- add tool tips for blocks
- add help url for blocks
- remove old logic checking value blocks
- ensure blockly default blocks have the next and previous statment type properly specified
- Setup warning on non-init blocks
- Once the declare block has been used the modifier blocks are enabled. THe problem is the modifier blocks have a new variable option. Actually It probably shouldn't exist on any of the modifier blocks. We need a way to make sure that the modifier blocks are set to one of the variables which exists because of a decleare block. One possible solution is to have value ports and create blocks in the menu for each variable.
- need a test procedure for the code
- It would be nice to handle port assiginments better, so that the same port can not be multiply selected
- Should the robot drive block which creates 4 motor controller objects add the MC objects to the variable dropdown so that they can be independently accessed?
- remove the compresor block
- make all of the declare blocks the same color so that it is more obvious where they go.
- Add a description to the save system
- allow fields to have their own tool tips