mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-01-26 08:13:05 +01:00
Revert wind speed chart for horizontal charts; changed chart format parameters to <char>; adjusted chart size to OBP standard
Revert wind speed chart for horizontal charts; changed chart format parameters to <char>; adjusted chart size to OBP standard - commit from PageWindPlot-v2
This commit is contained in:
@@ -16,19 +16,18 @@ protected:
|
||||
GwLog *logger;
|
||||
|
||||
RingBuffer<T> &dataBuf; // Buffer to display
|
||||
int8_t chrtDir; // Chart timeline direction: [0] = horizontal, [1] = vertical
|
||||
char chrtDir; // Chart timeline direction: 'H' = horizontal, 'V' = vertical
|
||||
int8_t chrtSz; // Chart size: [0] = full size, [1] = half size left/top, [2] half size right/bottom
|
||||
double dfltRng; // Default range of chart, e.g. 30 = [0..30]
|
||||
uint16_t fgColor; // color code for any screen writing
|
||||
uint16_t bgColor; // color code for screen background
|
||||
bool useSimuData; // flag to indicate if simulation data is active
|
||||
|
||||
int top = 48; // display top header lines
|
||||
int bottom = 22; // display bottom lines
|
||||
// int top = 48; // display top header lines
|
||||
int top = 44; // chart gap at top of display (25 lines for standard gap + 19 lines for axis labels)
|
||||
int bottom = 25; // chart gap at bottom of display to keep space for status line
|
||||
int hGap = 11; // gap between 2 horizontal charts; actual gap is 2x <gap>
|
||||
int vGap = 20; // gap between 2 vertical charts; actual gap is 2x <gap>
|
||||
int xOffset = 33; // offset for horizontal axis (time/value), because of space for left vertical axis labeling
|
||||
int yOffset = 10; // offset for vertical axis (time/value), because of space for top horizontal axis labeling
|
||||
int dWidth; // Display width
|
||||
int dHeight; // Display height
|
||||
int timAxis, valAxis; // size of time and value chart axis
|
||||
@@ -41,7 +40,7 @@ protected:
|
||||
bool recalcRngCntr = false; // Flag for re-calculation of mid value of chart for wind data types
|
||||
|
||||
String dbName, dbFormat; // Name and format of data buffer
|
||||
int chrtDataFmt; // Data format of chart: [0] size values; [1] degree of course or wind; [2] rotational degrees
|
||||
char chrtDataFmt; // Data format of chart: 'S' = size values; 'D' = depth value, 'W' = degree of course or wind; 'R' rotational degrees
|
||||
double dbMIN_VAL; // Lowest possible value of buffer of type <T>
|
||||
double dbMAX_VAL; // Highest possible value of buffer of type <T>; indicates invalid value in buffer
|
||||
size_t bufSize; // History buffer size: 1.920 values for 32 min. history chart
|
||||
@@ -63,7 +62,7 @@ protected:
|
||||
void prntCurrValue(GwApi::BoatValue& currValue); // Add current boat data value to chart
|
||||
|
||||
public:
|
||||
Chart(RingBuffer<T>& dataBuf, int8_t chrtDir, int8_t chrtSz, double dfltRng, CommonData& common, bool useSimuData); // Chart object of data chart
|
||||
Chart(RingBuffer<T>& dataBuf, char chrtDir, int8_t chrtSz, double dfltRng, CommonData& common, bool useSimuData); // Chart object of data chart
|
||||
~Chart();
|
||||
void showChrt(int8_t chrtIntv, GwApi::BoatValue currValue); // Perform all actions to draw chart
|
||||
|
||||
|
||||
Reference in New Issue
Block a user