private void Form1_Shown(object sender, EventArgs e) { updateCommPortCombos(); comboResolution.SelectedIndex = 0; Matrix <double> test = new Matrix <double>(3, 3); LatestCamIntrinsics = new IntrinsicCameraParameters(); // initializing the intrinsics matrix to the identity LatestCamIntrinsics.IntrinsicMatrix.SetIdentity(); //LatestCamIntrinsics.DistortionCoeffs = new Matrix<double>(4, 1); LatestCamIntrinsics.DistortionCoeffs.SetZero(); gps = null; calibrator = null; imu = null; comboResolution.SelectedIndex = 2; // start the timer timer1.Start(); }
private void button1_Click(object sender, EventArgs e) { if (gps == null) { gps = new GPSReceiver(comboBox1.Items[comboBox1.SelectedIndex].ToString(), (int)numericUpDown1.Value, true); gps.StartReceiver(); // change the connection status control textBox4.Text = "Connected"; //timer1.Start(); } }
// A timer used to sample the IMU during the intervals betweem frame captures //private System.Timers.Timer IMUSamplingTimer; public Flea3Recorder(GPSReceiver gpsReceiver, IMUCommsDevice imu) { int i; IMUcomms = imu; // 1. creating the camera object Cam = new ManagedCamera(); // 2. creating the bus manager in order to handle (potentially) // multiple cameras BusMgr = new ManagedBusManager(); // 3. retrieving the List of all camera ids connected to the bus CamIDs = new List <ManagedPGRGuid>(); int camCount = (int)BusMgr.GetNumOfCameras(); for (i = 0; i < camCount; i++) { ManagedPGRGuid guid = BusMgr.GetCameraFromIndex((uint)i); CamIDs.Add(guid); } // 4. assigning values to properties GpsReceiver = gpsReceiver; // 5. init flags RecordingThreadActive = false; RecordToFile = false; OutOfRecordingThread = OutOfDumpingThread = true; // 6. Creating the Frame data queue FrameQueue = new ManagedImageRollingBuffer(MAX_FRAMEQUEUE_LEN); }
// A timer used to sample the IMU during the intervals betweem frame captures //private System.Timers.Timer IMUSamplingTimer; public Flea3Recorder(GPSReceiver gpsReceiver, IMUCommsDevice imu) { int i; IMUcomms = imu; // 1. creating the camera object Cam = new ManagedCamera(); // 2. creating the bus manager in order to handle (potentially) // multiple cameras BusMgr = new ManagedBusManager(); // 3. retrieving the List of all camera ids connected to the bus CamIDs = new List<ManagedPGRGuid>(); int camCount = (int)BusMgr.GetNumOfCameras(); for (i = 0; i < camCount; i++) { ManagedPGRGuid guid = BusMgr.GetCameraFromIndex((uint)i); CamIDs.Add(guid); } // 4. assigning values to properties GpsReceiver = gpsReceiver; // 5. init flags RecordingThreadActive = false; RecordToFile = false; OutOfRecordingThread = OutOfDumpingThread = true; // 6. Creating the Frame data queue FrameQueue = new ManagedImageRollingBuffer(MAX_FRAMEQUEUE_LEN); }
private void Form1_Shown(object sender, EventArgs e) { updateCommPortCombos(); comboResolution.SelectedIndex = 0; Matrix<double> test = new Matrix<double>(3, 3); LatestCamIntrinsics = new IntrinsicCameraParameters(); // initializing the intrinsics matrix to the identity LatestCamIntrinsics.IntrinsicMatrix.SetIdentity(); //LatestCamIntrinsics.DistortionCoeffs = new Matrix<double>(4, 1); LatestCamIntrinsics.DistortionCoeffs.SetZero(); gps = null; calibrator = null; imu = null; comboResolution.SelectedIndex = 2; // start the timer timer1.Start(); }