Modify TimeSeriesCanvas to be defined by yMin and yMax instead of yScale.

This commit is contained in:
Benelot
2016-11-01 19:48:39 +01:00
parent 293f355b37
commit 4559de6c11
3 changed files with 69 additions and 42 deletions

View File

@@ -13,6 +13,7 @@ public:
virtual ~TimeSeriesCanvas();
void setupTimeSeries(float yScale, int ticksPerSecond, int startTime, bool clearCanvas=true);
void setupTimeSeries(float yMin, float yMax, int ticksPerSecond, int startTime, bool clearCanvas=true);
void addDataSource(const char* dataSourceLabel, unsigned char red,unsigned char green,unsigned char blue);
void insertDataAtCurrentTime(float value, int dataSourceIndex, bool connectToPrevious);
float getCurrentTime() const;
@@ -22,4 +23,4 @@ public:
};
#endif//TIME_SERIES_CANVAS_H
#endif//TIME_SERIES_CANVAS_H