예제 #1
0
    for i in range(0,duration*100):
      elapsedTime = 10 * i   # time in msec
      enu = self._generateEnu(elapsedTime)
      self.sim.pushTrackLla(elapsedTime, origin.addEnu(enu))

# Connect
sim = skydelsdx.RemoteSimulator()
sim.setVerbose(True)
sim.connect(HOST)

# Create new config
sim.call(New(True))

# Change configuration before starting the simulation
sim.call(SetModulationTarget("NoneRT", "", "", True, "uniqueId"))
sim.call(ChangeModulationTargetSignals(0, 12500000, 100000000, "UpperL", "L1CA", -1, False, "uniqueId"))
sim.call(EnableLogRaw(True))

# Create a track (trajectory) for the vehicle
sim.call(SetVehicleTrajectory("Track"))
sim.beginTrackDefinition()
trajectory = CircleTrajectory(sim)
duration = 10
trajectory.send(duration)
count = sim.endTrackDefinition()

# Start the simulator
sim.start()
sim.stop(duration)

sim.disconnect()
from skydelsdx.commands import Stop
from skydelsdx.commands import EnableRFOutputForSV
from skydelsdx.commands import EnableSignalForSV
from skydelsdx.commands import EnableSignalForEachSV

# Connect
sim = skydelsdx.RemoteSimulator() 
sim.setVerbose(True)
sim.connect()

# Create new config
sim.call(New(True))
# Change configuration before starting the simulation
sim.call(SetModulationTarget("NoneRT", "", "", True, "uniqueId1"))
sim.call(SetModulationTarget("NoneRT", "", "", True, "uniqueId2"))
sim.call(ChangeModulationTargetSignals(0, 12500000, 100000000, "UpperL", "L1CA,G1", -1, False, "uniqueId1"))
sim.call(ChangeModulationTargetSignals(0, 12500000, 100000000, "LowerL", "L2C,G2", -1, False, "uniqueId2"))

# Start the simulation
sim.start()

sim.call(EnableRFOutputForSV("GPS", 18, False), 4)
sim.call(EnableRFOutputForSV("GPS", 18, True), 6)
sim.call(EnableSignalForSV("L1CA", 22, False), 8)
sim.call(EnableSignalForSV("L2C", 24, False), 9)
sim.call(EnableSignalForSV("L1CA", 22, True), 10)
sim.call(EnableSignalForSV("L2C", 24, True), 10)

sim.call(EnableSignalForSV("L1CA", 0, False), 12)
sim.call(EnableSignalForSV("L2C", 0, False), 13)
sim.call(EnableSignalForSV("L1CA", 0, True), 14)