View unanswered posts | View active topics It is currently Tue Jan 15, 2019 9:13 pm






Reply to topic  [ 3 posts ] 
HTSPB-driver.h I2cmsg incompatible driver 
Author Message
Rookie

Joined: Thu Dec 18, 2014 9:55 am
Posts: 3
Post HTSPB-driver.h I2cmsg incompatible driver
I am using RobotC4.27 and getting error compiling simple code. error is coming from common.h, htspb-driver.h

How do I fix this error?

code:
#pragma config(Sensor, S3, HTSPB, sensorI2CCustom9V)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//

#include "C:\Users\xxxxx\Desktop\307-SuperProExperimetersKit\RobotC\drivers\HTSPB-driver.h"
task main()
{
// int inputData;
//HTSPB


}


==========================
File "C:\Users\xxxxx\Documents\SourceFile002.c" compiled on Jan 01 2015 20:26:35
**Error**:'*' Indirection levels mismatch. Call to 'sendI2CMsg'. Parameter: 'char * pSendMsg' is 'error_array[0]' of type 'ubyte'.
*Warning*:Substituting similar variable 'playSound' for 'PlaySound'. Check spelling and letter case.
*Warning*:Symbol 'nxtDisplayCenteredTextLine' is 'deprecated' definition. There may be alternate symbol with equivalent functionality.
*Warning*:Substituting similar variable 'stopAllTasks' for 'StopAllTasks'. Check spelling and letter case.
**Error**:'*' Indirection levels mismatch. Call to 'sendI2CMsg'. Parameter: 'char * pSendMsg' is 'data[0]' of type 'ubyte'.
**Error**:'*' Indirection levels mismatch. Call to 'sendI2CMsg'. Parameter: 'char * pSendMsg' is 'data[0]' of type 'ubyte'.
*Warning*:Substituting similar variable 'playSound' for 'PlaySound'. Check spelling and letter case.
*Warning*:Substituting similar variable 'stopAllTasks' for 'StopAllTasks'. Check spelling and letter case.
**Error**:'*' Indirection levels mismatch. Call to 'readI2CReply'. Parameter: 'char * pReplyBytes' is 'data[0]' of type 'ubyte'.


Attachments:
HTSPB-driver.h [9.54 KiB]
Downloaded 126 times
common.h [19.62 KiB]
Downloaded 142 times
Fri Jan 02, 2015 12:42 am
Profile
Professor
User avatar

Joined: Sat Aug 31, 2013 9:15 am
Posts: 256
Post Re: HTSPB-driver.h I2cmsg incompatible driver
I believe the problem here is that your drivers are out of date. You can get the latest version from https://github.com/botbench/robotcdriversuite. Simply click on the "Download Zip" button to get the latest set of drivers.

_________________
FTC Team 6100 Chariots of Fire - Programmer (2012-2013)
FTC Team 7468 Blue Chariots of Fire - Programmer (2013-2014)
FTC Team 7468 Blue Chariots of Fire - Mentor (2014-2015)
Check out our team website at http://bluechariotsoffire.com/.


Fri Jan 02, 2015 1:01 am
Profile
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: HTSPB-driver.h I2cmsg incompatible driver
That is indeed, most likely, the issue :)

= 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]


Wed Jan 07, 2015 3:04 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:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.