// 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); }