@@ -153,21 +153,21 @@ void updateDisplay()
153
153
| ICON_BASE_TEMPORARY // Top center
154
154
| ICON_BATTERY // Top right
155
155
| ICON_LOGGING; // Bottom right
156
- paintBaseTempTransmitting ();
156
+ paintXmittingRTCM ();
157
157
break ;
158
158
case (STATE_BASE_TEMP_WIFI_STARTED):
159
159
icons = paintWirelessIcon () // Top left
160
160
| ICON_BASE_TEMPORARY // Top center
161
161
| ICON_BATTERY // Top right
162
162
| ICON_LOGGING; // Bottom right
163
- paintBaseTempWiFiStarted ();
163
+ paintXmittingRTCM ();
164
164
break ;
165
165
case (STATE_BASE_TEMP_WIFI_CONNECTED):
166
166
icons = paintWirelessIcon () // Top left
167
167
| ICON_BASE_TEMPORARY // Top center
168
168
| ICON_BATTERY // Top right
169
169
| ICON_LOGGING; // Bottom right
170
- paintBaseTempWiFiConnected ();
170
+ paintXmittingRTCM ();
171
171
break ;
172
172
case (STATE_BASE_TEMP_CASTER_STARTED):
173
173
icons = paintWirelessIcon () // Top left
@@ -191,21 +191,21 @@ void updateDisplay()
191
191
| ICON_BASE_FIXED // Top center
192
192
| ICON_BATTERY // Top right
193
193
| ICON_LOGGING; // Bottom right
194
- paintBaseFixedTransmitting ();
194
+ paintXmittingRTCM ();
195
195
break ;
196
196
case (STATE_BASE_FIXED_WIFI_STARTED):
197
197
icons = paintWirelessIcon () // Top left
198
198
| ICON_BASE_FIXED // Top center
199
199
| ICON_BATTERY // Top right
200
200
| ICON_LOGGING; // Bottom right
201
- paintBaseFixedWiFiStarted ();
201
+ paintXmittingRTCM ();
202
202
break ;
203
203
case (STATE_BASE_FIXED_WIFI_CONNECTED):
204
204
icons = paintWirelessIcon () // Top left
205
205
| ICON_BASE_FIXED // Top center
206
206
| ICON_BATTERY // Top right
207
207
| ICON_LOGGING; // Bottom right
208
- paintBaseFixedWiFiConnected ();
208
+ paintXmittingRTCM ();
209
209
break ;
210
210
case (STATE_BASE_FIXED_CASTER_STARTED):
211
211
icons = paintWirelessIcon () // Top left
@@ -707,58 +707,7 @@ void paintBaseTempSurveyStarted()
707
707
}
708
708
709
709
// Show transmission of RTCM packets
710
- void paintBaseTempTransmitting ()
711
- {
712
- int textX = 1 ;
713
- int textY = 17 ;
714
- int textKerning = 8 ;
715
- oled.setFont (QW_FONT_8X16);
716
- printTextwithKerning (" Xmitting" , textX, textY, textKerning);
717
-
718
- oled.setCursor (0 , 39 ); // x, y
719
- oled.setFont (QW_FONT_5X7);
720
- oled.print (" RTCM:" );
721
-
722
- if (rtcmPacketsSent < 100 )
723
- oled.setCursor (30 , 36 ); // x, y - Give space for two digits
724
- else
725
- oled.setCursor (28 , 36 ); // x, y - Push towards colon to make room for log icon
726
-
727
- oled.setFont (QW_FONT_8X16); // Set font to type 1: 8x16
728
- oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
729
-
730
- paintResets ();
731
- }
732
-
733
- // Show transmission of RTCM packets
734
- // Blink WiFi icon
735
- void paintBaseTempWiFiStarted ()
736
- {
737
- int textX = 1 ;
738
- int textY = 17 ;
739
- int textKerning = 8 ;
740
- oled.setFont (QW_FONT_8X16);
741
- printTextwithKerning (" Xmitting" , textX, textY, textKerning);
742
-
743
- oled.setCursor (0 , 39 ); // x, y
744
- oled.setFont (QW_FONT_5X7);
745
- oled.print (" RTCM:" );
746
-
747
- if (rtcmPacketsSent < 100 )
748
- oled.setCursor (30 , 36 ); // x, y - Give space for two digits
749
- else
750
- oled.setCursor (28 , 36 ); // x, y - Push towards colon to make room for log icon
751
-
752
- oled.setFont (QW_FONT_8X16); // Set font to type 1: 8x16
753
- oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
754
-
755
- paintResets ();
756
- }
757
-
758
- // Show transmission of RTCM packets
759
- // Solid WiFi icon
760
- // This is identical to paintBaseTempWiFiStarted
761
- void paintBaseTempWiFiConnected ()
710
+ void paintXmittingRTCM ()
762
711
{
763
712
int textX = 1 ;
764
713
int textY = 17 ;
@@ -824,81 +773,6 @@ void paintBaseTempCasterConnected()
824
773
paintResets ();
825
774
}
826
775
827
- // Show transmission of RTCM packets
828
- void paintBaseFixedTransmitting ()
829
- {
830
- int textX = 1 ;
831
- int textY = 17 ;
832
- int textKerning = 8 ;
833
- oled.setFont (QW_FONT_8X16);
834
- printTextwithKerning (" Xmitting" , textX, textY, textKerning);
835
-
836
- oled.setCursor (0 , 39 ); // x, y
837
- oled.setFont (QW_FONT_5X7);
838
- oled.print (" RTCM:" );
839
-
840
- if (rtcmPacketsSent < 100 )
841
- oled.setCursor (30 , 36 ); // x, y - Give space for two digits
842
- else
843
- oled.setCursor (28 , 36 ); // x, y - Push towards colon to make room for log icon
844
-
845
- oled.setFont (QW_FONT_8X16); // Set font to type 1: 8x16
846
- oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
847
-
848
- paintResets ();
849
- }
850
-
851
- // Show transmission of RTCM packets
852
- // Blink WiFi icon
853
- void paintBaseFixedWiFiStarted ()
854
- {
855
- int textX = 1 ;
856
- int textY = 17 ;
857
- int textKerning = 8 ;
858
- oled.setFont (QW_FONT_8X16);
859
- printTextwithKerning (" Xmitting" , textX, textY, textKerning);
860
-
861
- oled.setCursor (0 , 39 ); // x, y
862
- oled.setFont (QW_FONT_5X7);
863
- oled.print (" RTCM:" );
864
-
865
- if (rtcmPacketsSent < 100 )
866
- oled.setCursor (30 , 36 ); // x, y - Give space for two digits
867
- else
868
- oled.setCursor (28 , 36 ); // x, y - Push towards colon to make room for log icon
869
-
870
- oled.setFont (QW_FONT_8X16); // Set font to type 1: 8x16
871
- oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
872
-
873
- paintResets ();
874
- }
875
-
876
- // Show transmission of RTCM packets
877
- // Solid WiFi icon
878
- // This is identical to paintBaseTempWiFiStarted
879
- void paintBaseFixedWiFiConnected ()
880
- {
881
- int textX = 1 ;
882
- int textY = 17 ;
883
- int textKerning = 8 ;
884
- oled.setFont (QW_FONT_8X16);
885
- printTextwithKerning (" Xmitting" , textX, textY, textKerning);
886
-
887
- oled.setCursor (0 , 39 ); // x, y
888
- oled.setFont (QW_FONT_5X7);
889
- oled.print (" RTCM:" );
890
-
891
- if (rtcmPacketsSent < 100 )
892
- oled.setCursor (30 , 36 ); // x, y - Give space for two digits
893
- else
894
- oled.setCursor (28 , 36 ); // x, y - Push towards colon to make room for log icon
895
-
896
- oled.setFont (QW_FONT_8X16); // Set font to type 1: 8x16
897
- oled.print (rtcmPacketsSent); // rtcmPacketsSent is controlled in processRTCM()
898
-
899
- paintResets ();
900
- }
901
-
902
776
// Show connecting to caster service
903
777
// Solid WiFi icon
904
778
void paintBaseFixedCasterStarted ()
0 commit comments