Skip to content
Snippets Groups Projects
Commit 45edd299 authored by Robin Mueller's avatar Robin Mueller
Browse files

gps service test for gps0 and gps1

parent 283ddb3a
No related branches found
No related tags found
No related merge requests found
......@@ -44,9 +44,8 @@ class EthernetComIF(CommunicationInterface):
ready = self.dataAvailable(pollTimeout)
if ready is False:
pass
elif ready[0]:
packet = self.receiveTelemetry()
self.tmtcPrinter.printTelemetry(packet)
elif ready:
self.receiveTelemetry()
def receiveTelemetry(self, parameters=0):
data = self.recvSocket.recvfrom(1024)[0]
......
......@@ -37,11 +37,11 @@ def serviceTestSelect(service, serviceQueue):
return packService200TestInto(serviceQueue)
elif service == "Dummy":
return packDummyDeviceTestInto(serviceQueue)
elif service == "GPS":
elif service == "GPS0":
# Object ID: GPS Device
objectId = bytearray([0x44, 0x00, 0x1F, 0x00])
return packGpsTestInto(objectId, serviceQueue)
elif service == "rGPS":
elif service == "GPS1":
# Object ID: GPS Device
objectId = bytearray([0x44, 0x00, 0x20, 0x00])
return packGpsTestInto(objectId, serviceQueue)
......@@ -153,8 +153,8 @@ def packGpsTestInto(objectId, tcQueue):
modeData = packModeData(objectId, 1, 0)
command = PUSTelecommand(service=200, subservice=1, SSC=12, data=modeData)
tcQueue.put(command.packCommandTuple())
# pack wait interval until mode is one
tcQueue.put(("wait", 3))
# pack wait interval until mode is on and a few gps replies have been received
tcQueue.put(("wait", 6))
# Set Mode Off
tcQueue.put(("print", "\n\rTesting GPS: Set Off"))
modeData = packModeData(objectId, 0, 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment