It is currently Thu May 23, 2013 2:51 pm
       


All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Libasuro 3.0
PostPosted: Sun Dec 21, 2008 4:43 am 
Offline
arexx.com user

Joined: Wed May 28, 2008 3:17 pm
Posts: 31
Location: Montréal
Hi there,

I have some problem to make the libasuro 3.0 fit with orginal library. I tried several times, in several ways, like copy paste each function from libasuro to original library, with no success.

Here it is, after compilation:

asuro.c:272: error: `uint16_t' undeclared (first use in this function)
asuro.c:272: error: (Each undeclared identifier is reported only once
asuro.c:272: error: for each function it appears in.)
asuro.c:272: error: parse error before "enc_count"
asuro.c:275: error: `int8_t' undeclared (first use in this function)
asuro.c:276: error: `uint8_t' undeclared (first use in this function)
asuro.c:278: warning: implicit declaration of function `EncoderReset'
asuro.c:282: error: `tot_count' undeclared (first use in this function)
asuro.c:282: error: `enc_count' undeclared (first use in this function)
asuro.c:283: error: `l_speed' undeclared (first use in this function)
asuro.c:283: error: `r_speed' undeclared (first use in this function)
asuro.c:285: error: `encoder' undeclared (first use in this function)
asuro.c:285: error: `LEFT' undeclared (first use in this function)
asuro.c:286: error: `diff' undeclared (first use in this function)
asuro.c:286: error: `RIGHT' undeclared (first use in this function)
asuro.c: In function `Rotate':
asuro.c:309: error: `uint16_t' undeclared (first use in this function)
asuro.c:309: error: parse error before "enc_count"
asuro.c:312: error: `int8_t' undeclared (first use in this function)
asuro.c:313: error: `uint8_t' undeclared (first use in this function)
asuro.c:319: error: `tot_count' undeclared (first use in this function)
asuro.c:319: error: `enc_count' undeclared (first use in this function)
asuro.c:320: error: `l_speed' undeclared (first use in this function)
asuro.c:320: error: `r_speed' undeclared (first use in this function)
asuro.c:322: error: `encoder' undeclared (first use in this function)
asuro.c:322: error: `LEFT' undeclared (first use in this function)
asuro.c:323: error: `diff' undeclared (first use in this function)
asuro.c:323: error: `RIGHT' undeclared (first use in this function)
make: *** [asuro.o] Error 1

Sorry, I pasted the whole thing.

I can solve most of these, it's just some little typo problems in variable declarations.

But I can't understand that one:

asuro.c:272: error: `uint16_t' undeclared (first use in this function)

and

asuro.c:309: error: `uint16_t' undeclared (first use in this function)
asuro.c:309: error: parse error before "enc_count"
asuro.c:312: error: `int8_t' undeclared (first use in this function)
asuro.c:313: error: `uint8_t' undeclared (first use in this function)

May one of you guys could give me a complet and final version of the asuro library, or give me a link to download it? I am especially intersted in Rotate and Travel functions... Thaaaaanxx!

Gualdim


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 21, 2008 12:24 pm 
Offline
VIP - AREXX STAFF
User avatar

Joined: Thu Jun 23, 2005 10:52 am
Posts: 693
Location: Zwolle
Hi,

'int', 'unsigned int', 'char', 'unsigned char' are all default c-types.

Here 'uint16_t' is used, which is not.
This is some user defined type.

Somewhere there should be written something like:

#define uint16_t unsigned int

this is probably in some header (.h) file that must be included in your sourcefile with

#include "header.h"

So I think you are missing some header (.h) file.

Henk


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Sun Dec 21, 2008 7:56 pm 
Offline
arexx.com user

Joined: Wed May 28, 2008 3:17 pm
Posts: 31
Location: Montréal
Thank you Henk,

I finally found a complet library, it works.

I have a new problem now, I think that my odometry is not functionnal; for exemple in the Rotate function, Asuro never stop and keep turning on itself...


:?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group