Manual

Copyright © Dr Robot Inc. 2008
46
Get the distance measurement (unit: mm) from the RIGHT Constellation receiver on
the car to the selected Constellation transponder (ID = ID4).
Syntax: ival = GetGPS08 ( );
Parameter: void
Return value: short ival
Remarks:
If ival = 0x7fff, it means receiver did not get the distance measurement, the
transponder with ID4 is out of range.
If ival = 0x7ff0, it means receiver did not get any new distance data.
VI.9. void setGPSID(Byte id1, Byte id2, Byte id3, Byte id4)
Description:
Set the ID of Constellation transponder that the robot will be using.
Syntax: void setGPSID(Byte id1, Byte id2, Byte id3, Byte id4)
Parameter: Byte id1, Byte id2, Byte id3, Byte id4
Return value: void
Remarks:
The sensor with id1, id2 is on the one Constellation transponder, and the sensor
with id3,id4 is on another transponder.
VI.10. byte getSenID1 ( )
Description:
Get the ID of Constellation transponder that the robot is using. The distance
measurement that is obtained with getGPS01( ) function is from the LEFT receiver module,
and distance measurement that is obtained with getGPS05( ) function is from the RIGHT
receiver module.
Syntax: ival = getSenID1( )
Parameter: void
Return value: byte ival
VI.11. byte getSenID2 ( )
Description:
Get the ID of Constellation transponder that the robot is using. The distance
measurement that is obtained with getGPS02( ) function is from the LEFT receiver module,
and distance measurement that is obtained with getGPS06( ) function is from the RIGHT
receiver module.
Syntax: ival = getSenID2( )
Parameter: void
Return value: byte ival
VI.12. byte getSenID3 ( )
Description: