C# Class ASCOM.cam85_v03.Camera

Inheritance: ICameraV2
Mostra file Open project: vakulenko/CAM8_software

Private Properties

Property Type Description
CheckConnected void
ReadProfile void
RegUnregASCOM void
RegisterASCOM void
UnregisterASCOM void
WriteProfile void
cameraConnect bool
cameraDisconnect bool
cameraGetCameraState int
cameraGetError int
cameraGetImage uint
cameraGetImageReady bool
cameraIsConnected bool
cameraSetBaudrate bool
cameraSetGain bool
cameraSetOffset bool
cameraStartExposure bool
cameraStopExposure bool
slowCoolingTimerTick void

Public Methods

Method Description
AbortExposure ( ) : void
Action ( string actionName, string actionParameters ) : string
Camera ( ) : System

Initializes a new instance of the cam85_v03 class. Must be public for COM registration.

CommandBlind ( string command, bool raw ) : void
CommandBool ( string command, bool raw ) : bool
CommandString ( string command, bool raw ) : string
Dispose ( ) : void
PulseGuide ( GuideDirections Direction, int Duration ) : void
SetupDialog ( ) : void

Displays the Setup Dialog form. If the user clicks the OK button to dismiss the form, then the new settings are saved, otherwise the old values are reloaded. THIS IS THE ONLY PLACE WHERE SHOWING USER INTERFACE IS ALLOWED!

StartExposure ( double Duration, bool Light ) : void
StopExposure ( ) : void

Private Methods

Method Description
CheckConnected ( string message ) : void

Use this function to throw an exception if we aren't connected to the hardware

ReadProfile ( ) : void

Read the device configuration from the ASCOM Profile store

RegUnregASCOM ( bool bRegister ) : void

Register or unregister the driver with the ASCOM Platform. This is harmless if the driver is already registered/unregistered.

RegisterASCOM ( Type t ) : void
UnregisterASCOM ( Type t ) : void
WriteProfile ( ) : void

Write the device configuration to the ASCOM Profile store

cameraConnect ( ) : bool
cameraDisconnect ( ) : bool
cameraGetCameraState ( ) : int
cameraGetError ( ) : int
cameraGetImage ( ) : uint
cameraGetImageReady ( ) : bool
cameraIsConnected ( ) : bool
cameraSetBaudrate ( int val ) : bool
cameraSetGain ( int val ) : bool
cameraSetOffset ( int val ) : bool
cameraStartExposure ( int Bin, int StartX, int StartY, int NumX, int NumY, double Duration, bool light ) : bool
cameraStopExposure ( ) : bool
slowCoolingTimerTick ( Object source, ElapsedEventArgs e ) : void

Method Details

AbortExposure() public method

public AbortExposure ( ) : void
return void

Action() public method

public Action ( string actionName, string actionParameters ) : string
actionName string
actionParameters string
return string

Camera() public method

Initializes a new instance of the cam85_v03 class. Must be public for COM registration.
public Camera ( ) : System
return System

CommandBlind() public method

public CommandBlind ( string command, bool raw ) : void
command string
raw bool
return void

CommandBool() public method

public CommandBool ( string command, bool raw ) : bool
command string
raw bool
return bool

CommandString() public method

public CommandString ( string command, bool raw ) : string
command string
raw bool
return string

Dispose() public method

public Dispose ( ) : void
return void

PulseGuide() public method

public PulseGuide ( GuideDirections Direction, int Duration ) : void
Direction GuideDirections
Duration int
return void

SetupDialog() public method

Displays the Setup Dialog form. If the user clicks the OK button to dismiss the form, then the new settings are saved, otherwise the old values are reloaded. THIS IS THE ONLY PLACE WHERE SHOWING USER INTERFACE IS ALLOWED!
public SetupDialog ( ) : void
return void

StartExposure() public method

public StartExposure ( double Duration, bool Light ) : void
Duration double
Light bool
return void

StopExposure() public method

public StopExposure ( ) : void
return void