I have tried for sleepless nights to get our autonomous mode to work. IT is simple we pulled it right off of kevin.org. Since nobody on my team knows anything about c we cannot get it to work correctly. Could someone get it to work for me and then explain how you did it. i will attach it in zipped form
navigate.zip (61.6 KB)
navigate.zip (61.6 KB)
Could you explain a little more about what problem you are having? Is there a compile error, a code error, is it just not doing anything? I flipped through the code real quick, and it looks like this isn’t currently set to run in autonomous mode, but when you click p1_sw_trig…try toggling that and see what happens.
Good luck,
come over to 73’s pits sometime during the comp and we will get you all squared away
we cannot get it to run our autonomous mode it just say something like ifi_userintilization started. and then do nothing
A team with no working autonomous code is offering to help another team with no working autonomous code? :rolleyes:
oh come now joe…you know very well it will be working just fine by our first match and jeff will be giddy as he will have stayed up all night…
I’ll offer 1317’s pit too. (And our’s works!)
–EDIT–
Oh, yeah. We wear a crazy orange… We pit has a giant banner with lightning and a laser and our logo, which has “DF” in it.
–EDIT–
Try Greg first though. We didn’t use the beacons, so I don’t know much about how to use that code. I will say that it doesn’t appear to have any outputs ever.
How do you GET to autonomous? we had a prob last night, I changed main.c AND user_autonomous. user_autonomous has its own loop.
The competition port sends the signal that sends you into it. Is that what you mean?
Theres a competition pinout guide on the IFI website that will show you which pins to bridge to put the bot in autonomous. You can also manually do it with a digital or analog input in your program…
No, to simulate.
What I did was change main.c so it calls Process_Data_From_Master_uP() once and then goes into Autonomous.
You also have to change User_Autonomous() so that ITS loop doesn’t exit immediately. Change the while (Autonomous_Mode) to while (1)
Probably (much) better to simulate it by bridging the pins or setting it up in the program, rather than hardcoding the robot to autonomous (you don’t want it to go crazy uncontrollably when you turn it on).