Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
I basically tell a group of servos to go from where they are now to a new location in some set time like 500ms and this code takes care of updating all of the servos currently at every 50ms, such that all of the servos arrive at their end points at the specified time. I am currently using webbotlib's scheduler functions for this.
My latest update was to use some new functionality that was added to webbotlib in 14a that allows you to update the underlying data (center point...) of the servo. With this I have code that if you hold down the axon2 button while powering up the brat will go into a config mode that allows me to use the USB serial port to adjust the servos. When I am done I save away this information on the EEPROM of the AXon2 and this data is used each time I power up the brat.
QuoteI basically tell a group of servos to go from where they are now to a new location in some set time like 500ms and this code takes care of updating all of the servos currently at every 50ms, such that all of the servos arrive at their end points at the specified time. I am currently using webbotlib's scheduler functions for this. Hmmmmm my biped engine doesn't use the scheduler, I'm gonna have to look into this . . . will probably need to write a Biped Engine v4 after I finish testing v3.
static CMLSD1 s_cmlsd1_UpFromFront = {6, { { 0, 0, 0, 0, 0, 0, 500}, { 0, 900, 450, 0, 900, 450, 500}, { 400, 900,-370, 0, 900, 450, 500}, { 0, 900,-650, 0, 900,-650, 500}, { 0, 900,-650, 0, 900,-650, -300}, // Was a pause 300 may put in something special for this... { 0, 0, 0, 0, 0, 0,1000}}};
I do something very similar.Look at angle_finder.h in my ERP code:I basically just the keyboard to find the center, or any position, and it'll output it by hyperterminal. Then I just copy/paste the positions into my code.