Society of Robots - Robot Forum

Software => Software => Topic started by: shartke on April 24, 2010, 01:31:01 PM

Title: Axon 2 - HS-422 Servos Computer Controlled Example
Post by: shartke on April 24, 2010, 01:31:01 PM
I am using the example code from WebbotLib called computer_controlled_example.    When I take their compiled hex file and load it onto my Axon2 i can control my servos through port E7 and H5.   (This is using the already compiled hex)  When I add the code to a new project in AVR studio the code compiles just fine but the servos wont move.    If I use hyperterminal I can see the axon initiating via rprintf and when I press a number key (6, or 7)  I see 79 and 80 printed through rprintf.   I am sure I have missed a simple step.   I tried changing the code to use the axon2.h file.  I also changed those pins in the axon2.h to output.   Any ideas?
Title: Re: Axon 2 - HS-422 Servos Computer Controlled Example
Post by: shartke on April 24, 2010, 02:08:44 PM
I got it :D  I was being silly...
Title: Re: Axon 2 - HS-422 Servos Computer Controlled Example
Post by: Cristi_Neagu on April 24, 2010, 10:42:01 PM
Well... what was the problem, and, more importantly, what was the solution?