Anyone here want to be my hero and help me get started on autonomous programming in VEXcode IQ blocks?!
I’ve tried searching for tutorials and examples, but they are either too basic, or don’t work for what I’m needing. And I’ve made several attempts myself on the actual robot itself, but the most I’ve gotten it to do is move motor10 once. I’m fairly confident that if I see a portion of the code I need, I will be able to figure out the rest.
The 1st portion of the program I’d love help with:
• the following program when controller button “F up” is pressed, with motor10 running at 40% torque:
drive fwd until a bumper sensor is pushed → turn to the right until another bumper sensor
is pushed → spin motor10 fwd for 3 turns → turn left 50 degrees while spinning motor10
fwd 6 turns → drive fwd 10 inches → spin motor10 rev 4 turns → drive rev 2 inches
Do the drive train controls have to be set on the controller in the devices panel in autonomous? If anyone is willing to make this up and screenshot it for me, could you also tell me how you configure the devices, please?
Another question: I know it’s acceptable to reset the robot to starting position as many times as desired during the autonomous skills challenge; that means you are allowed to push a button to initiate a program each reset, or does it have to be initiated directly from the brain?
int signalTurnRight=0;
while (signalTurnRight=0)
{
drive forward;
wait;
}
if (bumper sensor 1==1) {
signalTurnRight=1;
}
if (bumper sensor 2==1) {
signalTurnRight=2;
}
while (signalTurnRight==1) {
turn right;
wait;
}
if (signalTurnRight==2){
spin motor10 fwd for 3 turns;
and other code....
}
Why , if he really needs help, he may have thought that the message had got buried and no one responses , however to answer your problem, I don’t know programming, but make shure that you define your terms , and maybe use copy past to avoid errors in typing.
I need someone to help by showing me how to start. The portion I listed isn’t even 1/10 of the full code. Like I said above, if I’m shown the correct way to do the portion I asked for, I’m more than happy to learn from that to figure out the rest of the code myself.
Not sure about others on here, but we just don’t have accessible resources like people who are familiar with programming.
We’ve been working on this for over 6 weeks and have barely gotten it to move, but thanks for the help and encouragement; thought this was supposed to be a team effort, educational type of program…