Society of Robots - Robot Forum

Software => Software => Topic started by: VaulB on March 24, 2010, 01:14:06 PM

Title: Axon source code won't work
Post by: VaulB on March 24, 2010, 01:14:06 PM
I open the axon source code project. I am just trying to get a servo to move, but it doesn't do anything. The program compiles ok.

Here is the program that i wrote into control.c:

void control(void)
{
PWM_Init_timer3_E5(8);
PWM_timer3_On_E5();

while(1)
{ PWM_timer3_Set_E5(1);
   delay_ms(1000);
   PWM_timer3_Set_E5(150);
   delay_ms(1000);
}
}

What am i doing wrong here? I noticed that there were no include directories or libraries in the project options and "Use External Makefile" is marked. This is not what Axon 2 getting started guide tells to do  ::)

Title: Re: Axon source code won't work
Post by: Admin on March 24, 2010, 09:48:12 PM
Look at the example source code for using a servo. :P

http://www.societyofrobots.com/axon/axon_function_list.shtml#hardware_defines (http://www.societyofrobots.com/axon/axon_function_list.shtml#hardware_defines)
Title: Re: Axon source code won't work
Post by: VaulB on March 25, 2010, 09:11:07 AM
I tried it, but still nothing. Is the Axon.hex the right hex file to load? It kind of seems that the program just isn't there...
Title: Re: Axon source code won't work
Post by: Admin on April 03, 2010, 08:23:29 PM
Please post your most recent code.

And when you compile, does the creation date on the Axon.hex file update?