Skip to content

Commit ebd14d5

Browse files
committed
Merge branch 'dev' into miniTTN
2 parents 653f2a6 + 6ff4e89 commit ebd14d5

File tree

3 files changed

+686
-11
lines changed

3 files changed

+686
-11
lines changed

src/Fossa_GroundStation/Fossa_GroundStation.ino

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Based on theRadioLib SX127x Receive with Interrupts Example
33
For full API reference, see the GitHub Pages
44
https://jgromes.github.io/RadioLib/
5+
56
*/
67

78
// include the library
@@ -312,22 +313,22 @@ void drawFrame6(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int1
312313
display->setColor(BLACK);
313314
display->setTextAlignment(TEXT_ALIGN_CENTER);
314315
display->fillRect(83,0,128,11);
315-
display->drawString( 65+x, 49+y+(x/2), "Waiting for FossaSat Pos" );
316-
display->drawString( 63+x, 51+y+(x/2), "Waiting for FossaSat Pos" );
317-
display->fillCircle(sat_pos_oled[0], sat_pos_oled[1], 6);
318-
319-
320-
display->setColor(WHITE);
316+
display->setFont(ArialMT_Plain_10);
317+
321318
if (sat_pos_oled[0] == 0 && sat_pos_oled[1] == 0) {
322-
display->setFont(ArialMT_Plain_10);
319+
display->drawString( 65+x, 49+y+(x/2), "Waiting for FossaSat Pos" );
320+
display->drawString( 63+x, 51+y+(x/2), "Waiting for FossaSat Pos" );
321+
display->setColor(WHITE);
323322
display->drawString( 64+x, 50+y+(x/2), "Waiting for FossaSat Pos" );
324323
}
325324
else {
326-
display->drawCircle(sat_pos_oled[0], sat_pos_oled[1], 5);
325+
display->fillCircle(sat_pos_oled[0]+x, sat_pos_oled[1]+y, 6);
326+
display->setColor(WHITE);
327+
display->drawCircle(sat_pos_oled[0]+x, sat_pos_oled[1]+y, 5);
327328
display->setColor(BLACK);
328-
display->drawCircle(sat_pos_oled[0], sat_pos_oled[1], 2);
329+
display->drawCircle(sat_pos_oled[0]+x, sat_pos_oled[1]+y, 2);
329330
display->setColor(WHITE);
330-
display->drawCircle(sat_pos_oled[0], sat_pos_oled[1], 1);
331+
display->drawCircle(sat_pos_oled[0]+x, sat_pos_oled[1]+y, 1);
331332
}
332333

333334
}

src/Fossa_GroundStation/config_manager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ constexpr auto TZ_LENGTH = 40;
2929

3030
typedef struct {
3131
uint32_t crc32;
32-
char station[STATION_NAME_LENGTH];
32+
char station[STATION_NAME_LENGTH] = "test_";
3333
float latitude = 0.0; // ** Beware this information is publically available use max 3 decimals
3434
float longitude = 0.0; // ** Beware this information is publically available use max 3 decimals
3535

0 commit comments

Comments
 (0)