So do you ever use the unique design of the mogo lift to tip opposing mobile goals in actual match play?
“over 500 lines of code”
how???
I haven’t seen another robot even remotely like this for this years game, +1 for originality, Robot is one of a kind. Although the design does not look the best suited to this year’s game, it is very well executed, that robot is not going to break easily.
There have been past VEX robots with over 2000 lines of code
i know that, but the auton that their robot has does not seem that complicated. must just have a really good PID system
No. It can tip back cones that have fallen over pretty well though.
I’ve put the auton code in functions. I think these take up more lines than they should, but they work okay. I also have some extra control on the cone claw to prevent it from stalling.
I can upload the code if anyone is interested(it’s not well commented though).
We have ~1600+ in ours…
The functions don’t have to be pretty, they save space if you use them for lots cycles.
all steel xdxdxdxdxdxd
Sure 500 lines of code isn’t a record or anything, but it’s still a pretty decent amount. Our code for Worlds last year wasn’t much more than that and I was pretty proud of that. This shouldn’t be a competition for “I can write my code in twice as many lines as you!” Too much verbosity is not a good thing, especially when programming something (relatively) weak like the Cortex.
sniff… 20 lines of code for my team’s world bot. that should be a record in short length
Teach me the ways of the ultra compact code
stabilize everything mechanically, and be like
motor[base left1] = motor[base left2] = vexRT[Ch2];
motor[base right] = motor[base right] = vexRT[Ch3];
if(vexRT[BtnU]) motor[lift 1] = motor[lift2] = motor[lift3] = motor[lift4] = motor[lift5] = motor[lift6] = 127;
else if(vexRT[Btn5D]) motor[lift 1] = motor[lift2] = motor[lift3] = motor[lift4] = motor[lift5] = motor[lift6] = -127;
Why stop there? Just put everything on one line
motor[base left1] = motor[base left2] = vexRT[Ch2]; motor[base right] = motor[base right] = vexRT[Ch3]; if(vexRT[BtnU]) motor[lift 1] = motor[lift2] = motor[lift3] = motor[lift4] = motor[lift5] = motor[lift6] = 127; else if(vexRT[Btn5D]) motor[lift 1] = motor[lift2] = motor[lift3] = motor[lift4] = motor[lift5] = motor[lift6] = -127;
its hard to read then…
our programming computer is hard to scroll, so we make the code as compact as possible
This reminds me of a few of the students I taught at a middle school in my area. They put everything on the same line ( I MEAN EVERYTHING ), and it was so hard to read that I refused to help them until they separated them. LOL
I think my new robots code right now has 500 lines, but I dont think there is a auton on ths right now.
my code has 498 lines not including libraries or header files, but that does include comments, some of which are fairly long.
well, uh… I might… that’s 2492 lines. Sorry Chris, but this program is not a mess despite what you say. Music files take up a lot of room, plus, no one said it was bad.
Kind of looks like a green eggs Round Up rip off to me…But the all steel is a nice touch.