ROBOTC.net forums
http://robotc.net/forums/

HTSPB-driver.h I2cmsg incompatible driver
http://robotc.net/forums/viewtopic.php?f=1&t=10134
Page 1 of 1

Author:  aditya [ Fri Jan 02, 2015 12:42 am ]
Post subject:  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 364 times
common.h [19.62 KiB]
Downloaded 289 times

Author:  BurningLights [ Fri Jan 02, 2015 1:01 am ]
Post subject:  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.

Author:  mightor [ Wed Jan 07, 2015 3:04 am ]
Post subject:  Re: HTSPB-driver.h I2cmsg incompatible driver

That is indeed, most likely, the issue :)

= Xander

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/