ocssw
V2022
|
Hawkeye.h
Go to the documentation of this file.
19 #define FINDERSCOPE_FPGA_BINNING 0 // when the above is 2, set this to 1 to bin in the FPGA (sum 2 rows),
23 #define FINDERSCOPE_LIGHT_HEIGHT (480/FINDERSCOPE_VBINNING) // Height of the Finderscope Sensor with 2:1 vertical binning
25 #define FINDERSCOPE_DOWNLOAD_DARK_WIDTH 4 // Width of Downloaded Dark at start of each Micron row
49 #define BAND_DARK_POSITION BAND_DARK_BOTTOM // Compile time option for position of Spectral Darks
50 #define BAND_DARK_BOTTOM_TRANSITION 20 // When darks at the bottom this indicates how many rows are in transition
53 #define BAND_US_PER_EXPOSURE_COUNT 10 // scale factor between the asked for interval value and time in microseconds
57 #define BAND_DARK_MAX_RECORDS 12 // Maximum number of Average Spectral Dark Pixels rows to encode
79 typedef enum { /* 0 - 5 */ HC_NULL, HC_PING, HC_SET_POWER_STATE, HC_GET_POWER_STATE, HC_GET_TELEMETRY, HC_SET_EXPOSURE_PARAMETERS,
80 /* 6 - 10 */ HC_GET_EXPOSURE_PARAMETERS, HC_START_EXPOSURE, HC_END_EXPOSURE, HC_GET_EXPOSURE_STATE, HC_GENERATE_TEST_EXPOSURE,
81 /* 11 - 15 */ HC_SET_IMAGE_SECTOR_SIZE, HC_SET_SPECTRAL_COMPRESSION_PARAMETERS, HC_GET_SPECTRAL_COMPRESSION_PARAMETERS, HC_POST_PROCESS_IMAGE, HC_GET_MISSION_TIME,
83 /* 100 - 105 */ HC_UGA_NULL = 100, HC_UGA_SET_EXPOSURE_PARAMETERS, HC_UGA_GET_EXPOSURE_PARAMETERS, HC_UGA_POST_PROCESS_IMAGE, HC_UGA_GET_EXPOSURE_STATE, HC_UGA_GENERATE_TEST_EXPOSURE,
85 /* 200 - 205 */ HC_DB_NULL = 200, HC_DB_DOWNLOAD, HC_DB_MICRON_GRAB, HC_DB_KLI_GRAB, HC_DB_KLI_STREAM, HC_DB_ECHO,
90 typedef enum { PS_POWERED_OFF, PS_LOW_POWER, PS_FULL_POWER, PS_START_SHUTDOWN, PS_SHUTDOWN_COMPLETE } POWER_STATE;
92 TC_CCD3_TEMP, TC_CCD4_TEMP, TC_FPGA_TEMP, TC_FPGA_VAUX, TC_FPGA_VINT, TC_FPGA_VNVP, TC_CCD_VDD_OC,
93 TC_AD7490_CH01, TC_AD7490_CH02, TC_AD7490_CH03, TC_AD7490_CH04, TC_AD7490_CH05, TC_AD7490_CH06, TC_AD7490_CH07, TC_AD7490_CH08,
94 TC_AD7490_CH09, TC_AD7490_CH10, TC_AD7490_CH11, TC_AD7490_CH12, TC_AD7490_CH13, TC_AD7490_CH14, TC_AD7490_CH15, TC_AD7490_CH16,
97 typedef enum { ES_IDLE, ES_ACTIVE, ES_POST_PROCESSING_IMAGE, ES_POST_PROCESSING_COMPLETE } EXPOSURE_STATE;
101 typedef enum { SS_NONE, SS_SOLENOID1, SS_SOLENOID2 } SHUTTER_SOLENOID; // used in decoding Type 3 Block of Image info
106 typedef enum { RR_VALID, RR_ACK, RR_NAK, RR_CAN, RR_DC1, RR_DC2, RR_BAD_CHECKSUM, RR_BAD_START, RR_BAD_COMMAND, RR_BAD_LENGTH, RR_UNKNOWN } VALIDATE_RESULT;
133 uint8_t ping[10];
137 uint8_t ping[256];
169 uint8_t epoch_time[5];
205 uint8_t epoch_time[5];
412 extern "C" int HawkeyeBuildCommand(uint8_t *dest, int command, void *pParams, uint16_t paramsLen);
413 extern "C" VALIDATE_RESULT HawkeyeValidateResponse(uint8_t *src, int command, void* pResponse, uint16_t responseLen);
420 extern VALIDATE_RESULT HawkeyeValidateResponse(uint8_t *src, int command, void* pResponse, uint16_t responseLen);
SetExposureParametersParams GetExposureParametersResponse
Definition: Hawkeye.h:192
Definition: Hawkeye.h:168
Definition: Hawkeye.h:132
Definition: Hawkeye.h:178
SetSpectralCompressionParametersParams GetSpectralCompressionParametersResponse
Definition: Hawkeye.h:270
Definition: Hawkeye.h:304
Definition: Hawkeye.h:316
Definition: Hawkeye.h:291
Definition: Hawkeye.h:147
Definition: Hawkeye.h:128
Definition: Hawkeye.h:335
uint16_t Checksum(uint8_t *src, int len)
Definition: Hawkeye.h:143
Definition: Hawkeye.h:204
Definition: Hawkeye.h:275
Definition: Hawkeye.h:325
uint32_t Swap4(uint32_t ul)
Definition: Hawkeye.h:256
int HawkeyeBuildCommand(uint8_t *dest, int command, void *pParams, uint16_t paramsLen)
uint16_t finderscopeExposure
Definition: Hawkeye.h:305
Definition: Hawkeye.h:350
uint16_t noFinderscopeImages
Definition: Hawkeye.h:306
Definition: Hawkeye.h:221
uint16_t finderscopeExposure
Definition: Hawkeye.h:188
Definition: Hawkeye.h:244
Definition: Hawkeye.h:136
@ HC_GET_SPECTRAL_COMPRESSION_PARAMETERS
Definition: Hawkeye.h:81
Definition: Hawkeye.h:124
uint16_t noFinderscopeImages
Definition: Hawkeye.h:189
uint16_t finderscopeVerticalBinning
Definition: Hawkeye.h:307
Definition: Hawkeye.h:248
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
Definition: HISTORY.txt:356
Definition: Hawkeye.h:397
Definition: Hawkeye.h:363
Definition: Hawkeye.h:390
@ HC_SET_SPECTRAL_COMPRESSION_PARAMETERS
Definition: Hawkeye.h:81
Definition: Hawkeye.h:211
Definition: Hawkeye.h:280
Definition: Hawkeye.h:160
Definition: Hawkeye.h:229
uint16_t Swap2(uint16_t us)
Definition: Hawkeye.h:197
Definition: Hawkeye.h:384
VALIDATE_RESULT HawkeyeValidateResponse(uint8_t *src, int command, void *pResponse, uint16_t responseLen)
void Swap2Copy(uint16_t *dest, uint16_t *scr, int len)
Definition: Hawkeye.h:155
Definition: Hawkeye.h:372
UGASetExposureParametersParams UGAGetExposureParametersResponse
Definition: Hawkeye.h:311
Definition: Hawkeye.h:356