History

TimeSeriesPlatformLibrary: Added static assestions that will fail at compile time if float is not 32-bits and double is not 64-bits since compression depends on this.

J. Ritchie Carroll committed 7 years ago

Commit 0fb09bd1 parent 385845d2 files · +21 −17Browse files

Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples (1 of 2 files). Show all

Unified · Split

Source/Libraries/TimeSeriesPlatformLibrary/Samples/PublisherHandler.cpp+15−15
@@ -208,21 +208,21 @@ void PublisherHandler::Start() · 207 unmodified lines
208208
209209 switch (metadata->Reference.Kind)
210210 {
211− case Frequency:
212− value = 60.0 + sign * randFraction * 0.1;
213− break;
214− case DfDt:
215− value = sign * randFraction * 2;
216− break;
217− case Magnitude:
218− value = 500 + sign * randFraction * 50;
219− break;
220− case Angle:
221− value = sign * randFraction * 180;
222− break;
223− default:
224− value = sign * randFraction * UInt32::MaxValue;
225− break;
211+ case Frequency:
212+ value = 60.0 + sign * randFraction * 0.1;
213+ break;
214+ case DfDt:
215+ value = sign * randFraction * 2;
216+ break;
217+ case Magnitude:
218+ value = 500 + sign * randFraction * 50;
219+ break;
220+ case Angle:
221+ value = sign * randFraction * 180;
222+ break;
223+ default:
224+ value = sign * randFraction * UInt32::MaxValue;
225+ break;
226226 }
227227
228228 measurement->Value = value;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t