[Tinyos-help] I cannot read magnetometer data from MTS310
Roberto Fernández Martínez
robfermar at yahoo.es
Fri Jan 11 04:27:25 PST 2008
Hello.
Im working with tinyos-2.x and I want to read a MTS310 with a micaz. My
problem is that I cannot read magnetometer data from MTS310. I would like to
read the output of each axis X and Y.
components new MagXC(), new MagYC();
App.ReadMagX -> MagXC;
App.ReadMagY -> MagYC;
uses interface Read<uint16_t> as ReadMagX;
uses interface Read<uint16_t> as ReadMagY;
call ReadMagX.read()
call ReadMagY.read()
But when I try to compile this program I have an error.
/opt/tinyos-2.x/tos/sensorboards/mts310/MagP.nc:83: warning:
`Mag.gainAdjustXDone' called asynchronously from `I2CPacket.writeDone'
/opt/tinyos-2.x/tos/sensorboards/mts310/MagP.nc:87: warning:
`Mag.gainAdjustYDone' called asynchronously from `I2CPacket.writeDone'
If I say, it is only a warning, probably I can go on and the program
probably runs. If I do this the result is always 00 00.
Can anybody help me?
Thank you.
Roberto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080111/5bd0474e/attachment.html
More information about the Tinyos-help
mailing list