Last change
on this file since 18788 was 17918, checked in by tbretz, 10 years ago |
First version of the control for the sky quality meter.
|
File size:
714 bytes
|
Line | |
---|
1 | #ifndef FACT_HeadersSQM
|
---|
2 | #define FACT_HeadersSQM
|
---|
3 |
|
---|
4 | namespace SQM
|
---|
5 | {
|
---|
6 | namespace State
|
---|
7 | {
|
---|
8 | enum states_t
|
---|
9 | {
|
---|
10 | kDisconnected = 1,
|
---|
11 | kConnected,
|
---|
12 | kInvalid,
|
---|
13 | kValid,
|
---|
14 | };
|
---|
15 | };
|
---|
16 |
|
---|
17 | struct Data
|
---|
18 | {
|
---|
19 | float mag; // Magnitude per square arc second (0.00m upper brightness limit)
|
---|
20 | uint32_t freq; // Frequency of sensor in Hz
|
---|
21 | uint32_t counts; // Period of sensor in counts (counts occur at 14.7456MHz/32)
|
---|
22 | float period; // Period of sensor in seconds (millisecond resolution)
|
---|
23 | float temp; // Temperature measured at light sensor in degC
|
---|
24 | } __attribute__((__packed__));
|
---|
25 |
|
---|
26 | };
|
---|
27 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.