hello my name is ryan i need you to look at my program and send me a corrected one. you see this program is sopposed to make the arm open all the way but it does not do this.my botball tornament is this saturday and i have one more day before that to work on this.program below.
int main() { set_servo_position(0,2000); enable_servos(); // turn on servo sleep(.1); // pause while it moves // move servo 1 in steps of 100 set_servo_position(1, get_servo_position(1)-1800); sleep(.2); // pause before next move //while(!down_button() && !b_button()); return 0; }
It would probably be better to ask for assistance instead of asking for someone to do your work.
What errors is the code producing? From a simple glance, it looks like this line is only half complete:
Spamming my inbox and posting four different programs is not how to get help. Remember that we are here to assist, not to do.
Thanks.
Braden McDorman
Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.
Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.
i am so sorry but its just i called the kiss help line and they are no help the manual is no help with the demobot. and this is my first year and all this is so hard.
Well the first step in diagnosing your problem is to know what errors your code is producing. Could you copy and paste those errors onto the forum? Once we have an idea of what is wrong, we can help you get your code working.
Braden McDorman
Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.
Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.