class for the F serise cameras More...
#include <AltaF.h>
Public Member Functions | |
void | OpenConnection (const std::string &ioType, const std::string &DeviceAddr, const uint16_t FirmwareRev, const uint16_t Id) |
void | CloseConnection () |
void | StartExposure (double Duration, bool IsLight) |
int32_t | GetNumAdChannels () |
void | Init () |
Apg::FanMode | GetFanMode () |
void | SetFanMode (Apg::FanMode mode, bool PreCondCheck=true) |
Protected Member Functions | |
void | FixImgFromCamera (const std::vector< uint16_t > &data, std::vector< uint16_t > &out, int32_t rows, int32_t cols) |
void | ExposureAndGetImgRC (uint16_t &r, uint16_t &c) |
void | CreateCamIo (const std::string &ioType, const std::string &DeviceAddr) |
void | CfgCamFromId (uint16_t CameraId) |
void | VerifyCamId () |
void | WriteId2CamReg () |
void | SetIsInterlineBit () |
bool | AreColsCentered () |
Protected Attributes | |
const std::string | m_fileName |
class for the F serise cameras
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright(c) 2011 Apogee Imaging Systems, Inc.
void AltaF::CloseConnection | ( | ) | [virtual] |
Closes the IO connection to the camera. IMPORTANT: If this call is made if camera is in an error condition, then the function will try to reset the interface. Thus it is not guaranteed that the address for the camera will be the same after this function is called.
std::runtime_error |
Implements ApogeeCam.
Apg::FanMode AltaF::GetFanMode | ( | ) | [virtual] |
Retruns current fan mode. Ascents always return Apg::FanMode_Off.
std::runtime_error |
Implements ApogeeCam.
int32_t AltaF::GetNumAdChannels | ( | ) | [virtual] |
Returns the number of channels on the camera's AD converters.
std::runtime_error |
Implements ApogeeCam.
void AltaF::Init | ( | ) | [virtual] |
Method for initializing the Apogee camera system. Must be called once before image acquisition.
std::runtime_error |
Implements ApogeeCam.
void AltaF::OpenConnection | ( | const std::string & | ioType, | |
const std::string & | DeviceAddr, | |||
const uint16_t | FirmwareRev, | |||
const uint16_t | Id | |||
) | [virtual] |
Opens a connection from the PC to the camera. The results strings from the FindDeviceUsb::Find() and the FindDeviceEthernet::Find() functions. provide the input into this function.
[in] | ioType | specifies camera IO interface 'usb' or 'ethernet' |
[in] | DeviceAddr | specifies the address of the camera on the interface |
[in] | FirmwareRev | Camera's firmware revision. Used to verify interface connection. |
[in] | Id | Camera's ID. Used to verify interface connection and setup camera specfic parameters. |
std::runtime_error |
Implements ApogeeCam.
void AltaF::SetFanMode | ( | Apg::FanMode | mode, | |
bool | PreCondCheck = true | |||
) | [virtual] |
Sets the current fan speed. The default value of this variable after initialization is Apg::FanMode_Low. Ascent cameras do not support programmable fan speed, thus writes using this property have no effect.
[in] | mode | Desired fan mode |
[in] | PreCondCheck | Setting PreCondCheck to false results in the pre-condition checking to be skipped. PreCondCheck should ALWAYS be set to true. |
std::runtime_error |
Implements ApogeeCam.
void AltaF::StartExposure | ( | double | Duration, | |
bool | IsLight | |||
) | [virtual] |
This method begins the imaging process. The type of exposure taken is depends on various state variables including the CameraMode and TriggerMode.
[in] | Duration | Length of the exposure(s), in seconds. The valid range for this parameter is GetMinExposureTime() to GetMaxExposureTime(). |
[in] | Determines | whether the exposure is a light or dark/bias frame. A light frame requires this parameter to be set to true, while a dark frame requires this parameter to be false. |
std::runtime_error |
Implements ApogeeCam.
void AltaF::WriteId2CamReg | ( | ) | [protected] |
AltaF's do not have dip switches on them any more because of space constriants on the PCB. Thus we now save the ID in the StrDb. But the camcom firmware still needs to know the id, because there is information about how to drive the camera embedded in the bits of the ID itself. Thus after verifying the id we need to write this value to the ID_FROM_PROM register.
std::runtime_error |