Does anybody have a simple, working, autonomous code they could screen cap and post for reference. As for the dashboard, say I wanted to create a light (on the LV dashboard) that turns on every time a limit switch is pressed. How would I go about programming that? I have looked at the 2013 FRC Dashboard guide but I’m still having trouble figuring it out, would anybody be able to walk me through the process. And while I’m asking all of these questions, how do you make your dashboard open simultaneously when you open the driver station, and how would you make a custom message pop up in the user message box upon start up.
Thank you in advance, and thank you to everyone on Chief Delphi that has helped me in the past as well, you have been a huge help!
Allons-y
I’ll let someone actually on a team post code they claim to work.
To achieve the light, put an SD write of a Boolean on your robot and update it with the value of the limit switch. On the dashboard, place the LEDs in the Operations tab and name it the same as the variable name.
If you create a LV dashboard and want it to launch, goto the setup tab and choose the LV dashboard. This should default to the location that the custom dashboard defaults to.
The custom message you are talking about sounds like a User Message. To write to that, use the Driver Station palette >> LCDWriteUserMessage.
Greg McKaskle
Here’s a simple autonomous.
It just drives, but you can put anything you want done inside the frames.
It’s called a Flat Sequence Structure and is found on the Programming -> Structures palette.
Mark,
Is the disabling of the safety config for Left and Right Motors Drive in Autonomous something that should have been present in the base code that was distributed (gotcha item)? From memory I don’t remember seeing this.
This year the default examples created a different mechanism to handle the Drive Safety during autonomous.
They have a new wait vi called Drive Auto that gets wired inline and delays while looping to feed the drive safety.
The palette it’s located on is under RobotDrive->Advanced
It fits the single data flow auto design, but is less useful in the concept of a flat sequence (although it can be used there too, it’s just more cumbersome).
I find teaching the flat sequence to new students much easier than the technique in the default Auto example. All are valid.