Author Topic: AxonII Newbie Question... Again  (Read 1502 times)

0 Members and 1 Guest are viewing this topic.

Offline Aberg098Topic starter

  • Full Member
  • ***
  • Posts: 66
  • Helpful? 0
AxonII Newbie Question... Again
« on: June 16, 2010, 11:58:00 AM »
Hello all,

I think I'm having a human to computer interface issue here, but I'm going through the steps on the software getting started page. I am at the point where I need to compile the photovore example code and get the following errors:

Build started 16.6.2010 at 13:47:34
2_WebbotLib.c

In file included from C:\My_Robots\Axon2_WebbotLib\..\WebbotLib/sys/../device.h:169,
                 from C:\My_Robots\Axon2_WebbotLib\..\WebbotLib/sys/axon2.h:252,
                 from ../Axon2_WebbotLib.c:38:
C:\My_Robots\Axon2_WebbotLib\..\WebbotLib/sys/../timer.h:503:17: error: led.h: No such file or directory
In file included from ../Axon2_WebbotLib.c:38:
C:\My_Robots\Axon2_WebbotLib\..\WebbotLib/sys/axon2.h: In function 'registerLED':
C:\My_Robots\Axon2_WebbotLib\..\WebbotLib/sys/axon2.h:269: warning: implicit declaration of function 'statusLEDregister'
In file included from ../Axon2_WebbotLib.c:38:
C:\My_Robots\Axon2_WebbotLib\..\WebbotLib/sys/axon2.h:333:24: error: ../rprintf.h: No such file or directory
In file included from ../Axon2_WebbotLib.c:38:
C:\My_Robots\Axon2_WebbotLib\..\WebbotLib/sys/axon2.h: In function 'sysInitHardware':
C:\My_Robots\Axon2_WebbotLib\..\WebbotLib/sys/axon2.h:337: warning: implicit declaration of function 'rprintfInit'
../Axon2_WebbotLib.c:41:36: error: rprintf.h: No such file or directory
../Axon2_WebbotLib.c:42:38: error: i2c_master.h: No such file or directory
../Axon2_WebbotLib.c:46:22: error: hardware.h: No such file or directory
../Axon2_WebbotLib.c: In function 'appInitHardware':
../Axon2_WebbotLib.c:53: error: 'GPS_UART' undeclared (first use in this function)
../Axon2_WebbotLib.c:53: error: (Each undeclared identifier is reported only once
../Axon2_WebbotLib.c:53: error: for each function it appears in.)
../Axon2_WebbotLib.c:53: error: 'GPS_BAUD' undeclared (first use in this function)
../Axon2_WebbotLib.c:54: error: 'USB_UART' undeclared (first use in this function)
../Axon2_WebbotLib.c:54: error: 'USB_BAUD' undeclared (first use in this function)
../Axon2_WebbotLib.c:55: error: 'WIRELESS_UART' undeclared (first use in this function)
../Axon2_WebbotLib.c:55: error: 'WIRELESS_BAUD' undeclared (first use in this function)
../Axon2_WebbotLib.c:56: error: 'OTHER_UART' undeclared (first use in this function)
../Axon2_WebbotLib.c:56: error: 'OTHER_BAUD' undeclared (first use in this function)
../Axon2_WebbotLib.c:59: error: 'USB_ACTIVATE' undeclared (first use in this function)
../Axon2_WebbotLib.c:62: error: 'bank1' undeclared (first use in this function)
../Axon2_WebbotLib.c: In function 'appInitSoftware':
../Axon2_WebbotLib.c:73: warning: implicit declaration of function 'rprintf'
../Axon2_WebbotLib.c: In function 'appControl':
../Axon2_WebbotLib.c:85: error: 'bank1' undeclared (first use in this function)
../Axon2_WebbotLib.c:99: warning: implicit declaration of function 'update_sensors'
../Axon2_WebbotLib.c:101: error: 'lightLeft' undeclared (first use in this function)
../Axon2_WebbotLib.c:101: error: 'lightRight' undeclared (first use in this function)
../Axon2_WebbotLib.c:104: error: 'left_wheel' undeclared (first use in this function)
../Axon2_WebbotLib.c:105: error: 'right_wheel' undeclared (first use in this function)
make: *** [Axon2_WebbotLib.o] Error 1
Build failed with 22 errors and 4 warnings...

From what I can gather, the compiler is looking for files, so I must of screwed up a directory or something. I have started the whole process over more than once...

Thanks for your patience

Offline amando96

  • Robot Overlord
  • ****
  • Posts: 187
  • Helpful? 1
Re: AxonII Newbie Question... Again
« Reply #1 on: June 17, 2010, 03:06:28 AM »
I'm in a hurry, and never used the axon, but for what i see you didn't properly install library "rprintf.h" and you forgot to declare loads of things
Rorcle, 60% complete
AATV, 5% complete

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,632
  • Helpful? 169
    • Society of Robots
Re: AxonII Newbie Question... Again
« Reply #2 on: June 17, 2010, 04:54:26 AM »
Yea, it appears its looking for WebbotLib but you told it to look in the wrong place (or you didn't install it yet).

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,121
  • Helpful? 108
Re: AxonII Newbie Question... Again
« Reply #3 on: June 17, 2010, 08:37:00 AM »
Trust you have set up AVRStudio correctly - ie telling it to add your WebbotLib directory to the include path rather than copying files out of WebbotLib and into your own project.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline Aberg098Topic starter

  • Full Member
  • ***
  • Posts: 66
  • Helpful? 0
Re: AxonII Newbie Question... Again
« Reply #4 on: June 17, 2010, 11:37:02 AM »
Yep, I did extract the WebbotLib to the default directory.

I gather that I need to follow step 5 in the getting started to tell AVR where to find Webbotlib, which I have. I have followed the steps and told AVR to find the WebbotLib in the given directory (C:\My_Robots\WebbotLib), from the Project\Configuration Options menu.

Under the include directories tab, the File Search Path should be set to where WebbotLib is extracted correct? Then I also need to include the Libraries, which are also there as per the example. Do I need to include the Hardware.h and rprintf.h files here as well?

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,632
  • Helpful? 169
    • Society of Robots
Re: AxonII Newbie Question... Again
« Reply #5 on: June 17, 2010, 11:41:02 AM »
I gather that I need to follow step 5 in the getting started to tell AVR where to find Webbotlib, which I have. I have followed the steps and told AVR to find the WebbotLib in the given directory (C:\My_Robots\WebbotLib), from the Project\Configuration Options menu.

Under the include directories tab, the File Search Path should be set to where WebbotLib is extracted correct? Then I also need to include the Libraries, which are also there as per the example. Do I need to include the Hardware.h and rprintf.h files here as well?
Just follow the instructions step by step exactly as you see. If it doesn't work, that means you missed a step, or did a step improperly :P

Offline Aberg098Topic starter

  • Full Member
  • ***
  • Posts: 66
  • Helpful? 0
Re: AxonII Newbie Question... Again
« Reply #6 on: June 17, 2010, 11:57:22 AM »
Okay okay I found it.

Yes I did follow the steps wrong, but I know WHERE my mistake was:

in Step 6, at the end where is says "Add hardware.h from the photovore example folder." under the add existing header files button (RHS, under AVR GCC, like the picture shows). I had saved the example folder to my desktop. The fix was to copy hardware.h to my new project's folder rather than try to include it from the photovore example folder.

While earlier the instructions stated to simply copy the code from the example's .c file ("Copy/paste all code in Photovore.c into the .c file with the same name as your project"), they did not specify to copy this file to my new project directory. Sorry to nitpick, I must of just understood it wrong.

Thanks to All who bothered!

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,121
  • Helpful? 108
Re: AxonII Newbie Question... Again
« Reply #7 on: June 17, 2010, 12:08:23 PM »
Can you clarify: I had thought that you were using the Photovore example from the WebbotLib PDF manual  but since that doesn't have a 'hardware.h' file then I suspect you were actually using an example from the SoR website http://www.societyofrobots.com/axon2/axon2_setup1.shtml.

I only ask as I am responsible for the former; whereas admin is responsible for the latter - just in case we need to clarify any documentation.

Glad you've succeeded anyway.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline Aberg098Topic starter

  • Full Member
  • ***
  • Posts: 66
  • Helpful? 0
Re: AxonII Newbie Question... Again
« Reply #8 on: June 17, 2010, 12:20:27 PM »
I was following the SoR Website setup page you have indicated. I'm not sure whether or not clarifying the documentation is warranted, but in my opinion it was a bit ambiguous. I do however freely confess to being a complete newb!

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,121
  • Helpful? 108
Re: AxonII Newbie Question... Again
« Reply #9 on: June 17, 2010, 01:32:39 PM »
I was following the SoR Website setup page you have indicated. I'm not sure whether or not clarifying the documentation is warranted, but in my opinion it was a bit ambiguous. I do however freely confess to being a complete newb!

Newbs are always welcome and your input is useful - sometimes its 'all to easy' for the more experienced among us to make assumptions.

So keep going - and feel free to ask as many questions as required.

Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here