View unanswered posts | View active topics It is currently Tue Oct 06, 2015 9:54 am

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

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1523
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'
#include "..\RobotCDrivers\drivers\HTIRS2-driver.h"

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

IRSEEKER g_irSeeker;

task main()
    g_irSeeker.sensorID = (tSensors)0;

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

Joined: Wed Jan 24, 2007 10:42 am
Posts: 620
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

Sat Sep 22, 2012 8:08 pm
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3589
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 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.