View unanswered posts | View active topics It is currently Fri Aug 01, 2014 11:57 am






Reply to topic  [ 3 posts ] 
RobotC 3.50 bug 7 
Author Message
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post RobotC 3.50 bug 7
The following code gave the compiler error:
**Error**:Calling procedure 'HTIRS2readAllACStrength'. '&' Invalid parameter for reference variable. Parameter: 'short & acS1'. Expression: '(&g_irSeeker)->acStrength[0]'. Type: 'short'
Code:
#include "..\RobotCDrivers\drivers\HTIRS2-driver.h"

#define IRSeekerGetRawACData(p) (HTIRS2readAllACStrength( \
                                    (p)->sensorID, \
                                    (p)->acStrength[0], \
                                    (p)->acStrength[1], \
                                    (p)->acStrength[2], \
                                    (p)->acStrength[3], \
                                    (p)->acStrength[4]))
typedef struct
{
    tSensors sensorID;
    int acStrength[5];
} IRSEEKER;

IRSEEKER g_irSeeker;

task main()
{
    g_irSeeker.sensorID = (tSensors)0;
    IRSeekerGetRawACData(&g_irSeeker);
}


Wed Sep 19, 2012 8:01 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 601
Post Re: RobotC 3.50 bug 7
This seems like this may be an issue with Xander's drivers - I believe he will be releasing a BETA for 3.0 of his driver suite that will have compliance for the new pointers/stacks/recursion functionality and compiler updates. If the issue continues after trying out the BETA, please let us know.

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Sat Sep 22, 2012 8:08 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3168
Location: Rotterdam, The Netherlands
Post Re: RobotC 3.50 bug 7
My drivers are a bit buggered at the moment but I am not back to my "LEGO Lair" until tomorrow, as I am on a business trip atm.

- 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 Sep 23, 2012 1:25 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.