Society of Robots - Robot Forum
Software => Software => Topic started 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 ::)
-
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)
-
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...
-
Please post your most recent code.
And when you compile, does the creation date on the Axon.hex file update?