Hello.

I’m 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.

 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to