go_away

Author Topic: Axon Servo Controller II problem  (Read 863 times)

0 Members and 1 Guest are viewing this topic.

Offline scottad73Topic starter

  • Jr. Member
  • **
  • Posts: 24
  • Helpful? 0
Axon Servo Controller II problem
« on: July 29, 2010, 10:09:22 PM »
Hello,  I tried to build this project and got the following messages:

Build started 29.7.2010 at 22:07:08
ned-bitfields -fpack-struct -fshort-enums -MD -MP -MT Servo_Controller.o -MF dep/Servo_Controller.o.d  -c  ../Servo_Controller.c

In file included from ../SoR_Utils.h:26,
                 from ../Servo_Controller.c:15:
../global.h:37:1: warning: "F_CPU" redefined
<command-line>: warning: this is the location of the previous definition
../Servo_Controller.c:88: error: 'L' undeclared here (not in a function)
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c: In function 'main':
../Servo_Controller.c:240: warning: assignment makes integer from pointer without a cast
../Servo_Controller.c:242: warning: assignment makes pointer from integer without a cast
make: *** [Servo_Controller.o] Error 1
Build failed with 1 errors and 31 warnings...

The line that the error corresponds to was:

int *init_servo_port[28]={&L,&PORTL,&PORTL,&PORTL,&PORTL,&PORTL,&PORTL,&PORTL,&PORTG,&PORTG,&PORTH, &PORTB,&PORTB,&PORTB,&PORTB,&PORTH,&PORTH,&PORTH,&PORTH,&PORTE,&PORTE,&PORTE,&PORTE,&PORTE,&PORTG, &PORTA,&PORTA,&PORTA};

I attempted to fix this error but was not successful.  Could you please tell me what I could be doing wrong.

Thank you.



Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,666
  • Helpful? 169
    • Society of Robots
Re: Axon Servo Controller II problem
« Reply #1 on: July 30, 2010, 09:05:38 AM »
Hi

The servo controller code never left alpha version, and is entirely obsolete now. I probably should just delete it . . .

Download WebbotLib and use it with Project Designer to program a servo controller. Its actually pretty easy.

If you get stuck let us know.

 


Get Your Ad Here

data_list