|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: FRC Primer for Programmers
Personally, I would also throw in a bit about version control, network tables, and logging.
|
|
#2
|
|||
|
|||
|
Re: FRC Primer for Programmers
I'd be really interested to see the powerpoint when you are finished!
|
|
#3
|
|||
|
|||
|
Re: FRC Primer for Programmers
If you're up for it, I've wanted to make YouTube videos for this stuff for a long time now. Maybe we could correspond in writing material then I can make videos explaining everything? Please PM me if you're interested. Thanks.
|
|
#4
|
|||
|
|||
|
Re: FRC Primer for Programmers
Is there anything like this already for java out there other than what's on the wpilib site?
Last edited by WSiggs : 27-05-2016 at 10:03. |
|
#5
|
||||
|
||||
|
Re: FRC Primer for Programmers
Quote:
Its cool to teach them everything (though most of it isn't really necessary, just interesting to some), but get them interested first. If they signed up for "learning to program" maybe programming should be in the first few topics. None of this is going to have any context until they start writing code anyways, so why not start with code? Quote:
They're not starting Computer Engineering. They don't need to know the networking layer right now, or how the FPGA in the roboRIO works... It's cool and useful eventually, but you're just going to scare away anyone who doesn't think they're smart enough. |
|
#6
|
||||
|
||||
|
Re: FRC Primer for Programmers
Quote:
Learning about the hardware in the robot is important. We're not building desktop applications here, we're building applications that make a robot run. Students are learning to program for an embedded system, and with that comes some limitations and gotchas that don't come with regular programming lessons. For this reason I think (2) should be included. FMS -> If your robot is dead on the field, your electrical and programming teams will be the first port of call. Most of FMS is a black box, but things like Periodic and Iterative functions are important as they're important for the control of your robot. I've taught FRC software classes before, and I've had many students come up to me and as "wait, so why do we run the same code over and over again? Can't we just put it in init and it will work?". Students need to understand how states in the robot work, otherwise their code is just plain not going to work. If you look at any child of the RobotBase class, you'll see the words "{state}Init" and "{state}Periodic" pop up very commonly. This grants (3) a pass in my book. (12), Network Details. Robots don't always work, especially when they're on the field with 6 other robots. While this isn't as important as the other topics, and maybe shouldn't be included in the general, introductory course (sorry op), I think it has a place in more advanced classes maybe later in the pre-season. I'd have to agree that it doesn't belong in the 'primer' course. NetworkTables. I'd recommend swapping this out for SmartDashboard in the primer, since most of the time (unless your programmers have spare time), you won't be dealing with your own network data transport. I'd have to agree that this doesn't belong in the primer, either. When you're providing a primer course to students, you're setting the foundation for what they'll do later on, when they start to get more in depth and more advanced. Unfortunately in FIRST, a lot of the code resources are just examples without any real explanation, which places some programmers into bad practices, or in the horrible state of knowing but not understanding. Understand first, execute second. Not the other way around. ~Jaci |
|
#7
|
||||
|
||||
|
Re: FRC Primer for Programmers
cut for length: I do agree that a lot can be useful, and you brought up some points I didn't think about. My suggestion OP is that you reorder your topics. Start with what gets them hooked: writing a program, making a robot drive. Expand from there. Focus on whats the most relevant to making a robot move and work your way out. Save advanced topics for advanced students. No one starts out robot design with stress analysis and motor-curves. Programming is already scary and daunting for some students. Don't push them out by making it harder/more complex than it needs to be. |
|
#8
|
|||
|
|||
|
Re: FRC Primer for Programmers
The intent is to give a high level overview. Not to make them experts. The idea is to give them context for what they will see in the production robot code. Knowing the sequence of calls from fms helps in understanding what gets called when in the robot code.
Once the high level overview is created, I could see expanding each topic to a more in depth tutorial. Note: the purpose is not to entertain. That is for others to work on. The purpose is: in order to understand the code, here is what you need to know. Enough to understand, not enough to program. Sitting around watching the experienced programmers is no fun if you have no idea what they are doing. |
|
#9
|
|||
|
|||
|
Re: FRC Primer for Programmers
Quote:
Deploying code is at the end because that is the last thing you do. The idea is: when something happens, and the programmers start looking at ip addresses, they have a context on what is being debugged. As they gain experience, when something goes wrong, they have some idea where to start looking. Last edited by rich2202 : 28-05-2016 at 07:59. |
|
#10
|
||||
|
||||
|
Re: FRC Primer for Programmers
Quote:
Just my $0.02 as a student in the middle of many years of lectures. |
|
#11
|
||||
|
||||
|
Re: FRC Primer for Programmers
Quote:
Quote:
|
|
#12
|
|||||
|
|||||
|
Re: FRC Primer for Programmers
Quote:
Quote:
The goal is to make sure everyone has a high level overview of how the robot works (code wise). Quote:
Quote:
Quote:
|
|
#13
|
|||
|
|||
|
Re: FRC Primer for Programmers
Oof. Well there's your problem. Thankfully (or oftentimes not), on both teams I've participated on, programming hasn't been the greatest interest, so for teaching I've generally got one robot/roborio per student/2 students.
I do have to say though that a lecture on basic FRC programming would bore the crap out rookie student me. I would have remembered very little, and decided I wanted to build stuff, taken the more tangible safety certifications, and started machining/designing parts. Thankfully, instead of a lecture, we got to write some code for an old robot and make it run. I've found that this strategy works rather well in general. It means the student is more willing to read documentation on their own with the idea ahead that it will lead to more of the robot functioning. I say this having both trained my successors for two years as a student and mentoring a team through it's switch from LabView to Java. Of course, I doubt many teams have ceil(15/2) = 8 mostly identical robots to program on, so you're in a bit of a pickle. If I was in your situation I might have broken up the students into several sessions so they could all take a crack at making a robot work. However I am not in your situation. Best of luck. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|