コード例 #1
0
 private void Start()
 {
     NextSend         = Time.time + 1.0f / Frequency;
     controller       = GetComponent <VehicleController>();
     input_controller = GetComponent <VehicleInputController>();
     gps           = GetComponentInChildren <GpsDevice>();
     mainRigidbody = GetComponent <Rigidbody>();
 }
コード例 #2
0
ファイル: AppEvents.cs プロジェクト: misiek/foo
 public void subscribeToGps(GpsDevice gps)
 {
     // remove events to be sure that they will be added once
     gps.locationChanged -= this.locationChangedMainWindow;
     gps.locationChanged -= this.locationChangedMapManager;
     gps.satellitesChanged -= this.satellitesChangedMainWindow;
     // add events
     gps.locationChanged += this.locationChangedMainWindow;
     gps.locationChanged += this.locationChangedMapManager;
     gps.satellitesChanged += this.satellitesChangedMainWindow;
 }
コード例 #3
0
ファイル: AppEvents.cs プロジェクト: mitice/foo
 public void subscribeToGps(GpsDevice gps)
 {
     // remove events to be sure that they will be added once
     gps.locationChanged   -= this.locationChangedMainWindow;
     gps.locationChanged   -= this.locationChangedMapManager;
     gps.satellitesChanged -= this.satellitesChangedMainWindow;
     // add events
     gps.locationChanged   += this.locationChangedMainWindow;
     gps.locationChanged   += this.locationChangedMapManager;
     gps.satellitesChanged += this.satellitesChangedMainWindow;
 }
コード例 #4
0
        private void menuStartSymulator_Click(object sender, EventArgs e)
        {
            this.menuStartDevice.Checked    = false;
            this.menuStartSymulator.Checked = true;

            if (this.gps != null)
            {
                this.gps.stop();
            }
            this.gps = AppContext.Instance.getGpsSymulator();
            restartGps();
        }
コード例 #5
0
ファイル: MainWindow.cs プロジェクト: misiek/foo
        private void menuStartSymulator_Click(object sender, EventArgs e)
        {
            this.menuStartDevice.Checked = false;
            this.menuStartSymulator.Checked = true;

            if (this.gps != null)
                this.gps.stop();
            this.gps = AppContext.Instance.getGpsSymulator();
            restartGps();
        }
コード例 #6
0
 private void satellite(GpsDevice gps)
 {
     Invoke(updateSatHandler);
 }
コード例 #7
0
 private void location(GpsDevice gps)
 {
     Invoke(updatePosHandler);
 }