|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Introducing FRC Blocks - A starter program for FRC coding novices
FRC Blocks is a web interface that allows you to code FRC robots using an intuitive drag-and-drop interface. It compiles to Python in real time, allowing you to see the code that you "write". FRC Blocks is intended to be a bridge between drag-and-drop languages (scratch, labview) and more traditional programming languages.
FRC Blocks is great for:
I started this project as a way to get more members of my team involved in programming the robot, even if they have no prior experience or build season is only 3 weeks away. Try it out (no persistence or runner) View on GitHub It's simple to install and use.
Pneumatics, motors, some sensors, and joysticks are implemented. The live version does not spit out runnable code, as it needs a bootstrap IterativeRobot class, which is provided in the _runner.py file. Disclaimer: I have not tried this on a robot yet. However, it works on the pyfrc simulator. I'll update this soon with info on robot testing. Last edited by nickbrickmaster : 23-12-2015 at 23:56. Reason: Update to current version |
|
#2
|
||||
|
||||
|
Re: Introducing FRC Blocks - A starter program for FRC coding novices
Wow. Very cool. thanks for sharing. Will have to check it out in more detail tonight.
Dr W |
|
#3
|
||||
|
||||
|
Re: Introducing FRC Blocks - A starter program for FRC coding novices
This looks really cool! It's a little confusing at first without any instructions, but I got the hang of it after a few minutes. I will have to show this to my new programmers to introduce them to robot programming (as opposed to regular programming). I would love to see a good set of instructions, and pneumatic control.
|
|
#4
|
|||
|
|||
|
Re: Introducing FRC Blocks - A starter program for FRC coding novices
Blockly is cool, interesting the way that you've changed/extended it.
I've been using Snap! recently since it also allows you to create your own blocks. How did you pick Blockly as your base? |
|
#5
|
||||
|
||||
|
Re: Introducing FRC Blocks - A starter program for FRC coding novices
Quote:
Actually, after looking it up, I realize that I once used BYOB, a long while ago. Does that also compile to some language that uses wpilib? |
|
#6
|
|||
|
|||
|
Re: Introducing FRC Blocks - A starter program for FRC coding novices
If you run Snap! and go into the examples look for Codification. It's a short example that produces C, Smalltalk, Javascript and Python.
|
|
#7
|
||||
|
||||
|
Re: Introducing FRC Blocks - A starter program for FRC coding novices
Needs some refinement, but very cool.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|