Skip to content

Commit

Permalink
removed visual too-wide gutter in satellite count bar graph
Browse files Browse the repository at this point in the history
  • Loading branch information
barry-ha committed Jan 4, 2024
1 parent 9d16ed0 commit 579f260
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions view_sat_count.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ViewSatCount : public View {

// pushes a value to the back of the circular buffer
void push(time_t tm, int nSats) {
//nSats = random(0, 19); // unit test: replace the measurement with something to scroll across the screen
// nSats = random(0, 19); // unit test: this replaces measurements with something to scroll across the screen
satCountItem item = {tm, nSats};
cbSats.push(item);
graphRefreshRequested = true;
Expand Down Expand Up @@ -95,10 +95,11 @@ class ViewSatCount : public View {
const int value2 = 118;

// canvas for bar graph, in screen coordinates
const int xLeft = 40; // pixels
const int xRight = 310;
const int yTop = 42;
const int yBot = 184;
const int xLeft = 40; // pixels
const int xRight = 306; // = (#bars) * (px/bar) + xLeft
// = (19) * (14) + 40
const int yTop = 42;
const int yBot = 184;

// ----- screen text
// names for the array indexes, must be named in same order as array below
Expand Down

0 comments on commit 579f260

Please sign in to comment.