View unanswered posts | View active topics It is currently Wed Nov 26, 2014 1:24 am






Reply to topic  [ 10 posts ] 
#include dexterind-gps.h issue 
Author Message
Rookie

Joined: Sun Aug 10, 2014 7:53 pm
Posts: 8
Post #include dexterind-gps.h issue
I am trying to use a dgps unit with the EV3 using RobotC 4.10. I have followed the steps for setting up the drivers suite ([url]couldn't open '#include' file 'drivers/dexterind-gps.h'[/url]), but an error persits: "couldn't open '#include' file 'drivers/dexterind-gps.h'"

Any suggestion about this specific issue?


Mon Aug 11, 2014 11:41 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3292
Location: Rotterdam, The Netherlands
Post Re: #include dexterind-gps.h issue
It looks like you're using an older version of the driver suite. I am currently working hard to make it work with ROBOTC 4.x. Meanwhile, you can download a snapshot of the drivers here: https://github.com/botbench/robotcdriversuite, just click the "download as zip" button.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Aug 11, 2014 12:03 pm
Profile WWW
Rookie

Joined: Sun Aug 10, 2014 7:53 pm
Posts: 8
Post Re: #include dexterind-gps.h issue
It seems that now it recognizes it, but this what I get when trying to compile:

Quote:
File "C:\Users\cghf\Desktop\SourceFile002.c" compiled on Aug 11 2014 20:15:56
*Warning*:Substituting similar variable 'StringFind' for 'stringFind'. Check spelling and letter case.
**Error**:Undefined variable 'buttonLeft'. 'short' assumed.
**Severe*:Constant Expression Expected
**Error**:Enum value for 'xButtonLeft' is not a 'const' expression
**Error**:Unexpected ',' during parsing
**Error**:Undefined variable 'xButtonRight'. 'short' assumed.
**Error**:Undefined variable 'buttonRight'. 'short' assumed.
**Error**:Expected->';'. Found ','
**Error**:Executable statements not valid in 'main' declaration block
**Error**:Unexpected ',' during parsing
**Error**:Undefined variable 'xButtonBack'. 'short' assumed.
**Error**:Undefined variable 'buttonBack'. 'short' assumed.
**Error**:Expected->';'. Found ','
**Error**:Executable statements not valid in 'main' declaration block
**Error**:Unexpected ',' during parsing
**Error**:Undefined variable 'xButtonEnter'. 'short' assumed.
**Error**:Undefined variable 'buttonEnter'. 'short' assumed.
**Error**:Expected->';'. Found ','
**Error**:Executable statements not valid in 'main' declaration block
**Error**:Unexpected ',' during parsing
**Error**:Undefined variable 'xButtonAny'. 'short' assumed.
**Error**:Undefined variable 'buttonAny'. 'short' assumed.
*Warning*:';' expected before '}'. Automatically inserted by compiler
**Error**:Executable statements not valid in 'main' declaration block
**Error**:Unexpected '}' during parsing
**Error**:Missing 'Identifier' before ';'
**Error**:Undefined procedure 'getButtonPress'.
**Error**:Undefined variable 'TEV3Buttons'. 'short' assumed.
**Error**:')' missing. Ummatched left parenthesis '('
**Error**:Expected->')'. Found 'button'
**Error**:Expected->';'. Found 'button'
*Warning*:Invalid '=' operation for types 'bool' and 'void'
**Error**:Missing ';' before ')'
**Error**:Unexpected ')' during parsing
*Warning*:Meaningless statement -- no code generated


I'm not an expert programmer, so don't know if that's me doing someting wrong?

Thanks!


Mon Aug 11, 2014 2:17 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3292
Location: Rotterdam, The Netherlands
Post Re: #include dexterind-gps.h issue
It would be useful to see the source code you're trying to compile.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Tue Aug 12, 2014 12:14 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3292
Location: Rotterdam, The Netherlands
Post Re: #include dexterind-gps.h issue
This is the current status of the ROBOTC Driver Suite: https://docs.google.com/spreadsheets/d/ ... sp=sharing

As you can see, very few sensors have been tested with the EV3. This will change in the coming days.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Tue Aug 12, 2014 1:23 am
Profile WWW
Rookie

Joined: Sun Aug 10, 2014 7:53 pm
Posts: 8
Post Re: #include dexterind-gps.h issue
I was trying to compile just the desxtering-gps.h.

I have moved stuff out of the .h file and put it as defines, variables and functions in the source file. With some slight
modifications I have achive to have it compiled.

As a less than an amateur programmer, I still have to test if it is actually makes sense and work (maybe not at all :) ), but if you want I can send you what I did. It is basically as follows:

- Substitute tByteArray by byte (i.e., from tByteArray DGPS_I2CRequest; to byte DGPS_I2CRequest [10]; and he same for sizeof(tByteArray) )
- It does not read writeI2C. I needed to remove those lines to make it work. It is included in the DGPSreadRegister so I'm not sure how much it is affecting the assembling. It looks like a return in case of not reading?

I will be testing how it works and if I can get something working.

And thanks for the hard work!!


Tue Aug 12, 2014 6:26 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3292
Location: Rotterdam, The Netherlands
Post Re: #include dexterind-gps.h issue
I am pretty sure the I2C stuff in that ROBOTC beta is not working very well for the EV3 :)

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Tue Aug 12, 2014 6:47 am
Profile WWW
Rookie

Joined: Sun Aug 10, 2014 7:53 pm
Posts: 8
Post Re: #include dexterind-gps.h issue
With version 4.25 of RobotC it finally compiles the dexter-gps.h.

However, now, when trying to run dGPS functions it says "ERROR, You have not setup the sensor port correctly. Please refer to one of the examples."

I have configured the port as Generic I2C, which is the only option I see for it. Is there any other option I should think of or that I am missing? Or should I still wait for a new version of the drivers?

Thanks!


Sun Aug 17, 2014 9:03 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3292
Location: Rotterdam, The Netherlands
Post Re: #include dexterind-gps.h issue
I have not completed testing all of the drivers with the EV3 yet. Keep checking on the Google doc link I posted earlier to see which ones are done.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun Aug 17, 2014 11:10 am
Profile WWW
Rookie

Joined: Sun Aug 10, 2014 7:53 pm
Posts: 8
Post Re: #include dexterind-gps.h issue
Hi Dexter,

I have been accessing to the google doc, but have not seen any advance in the dGPS and other sensors testing. Is still there any hope for the complex I2C implementation? ;)


Sun Oct 19, 2014 6:43 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

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.
Designed by ST Software for PTF.