@@ -105,6 +105,27 @@ BaseWidget {
105105 set_recording_mode (m_camera_is_currently_recording ? 0 : 1 );
106106 }
107107
108+ function format_temp (value ) {
109+ if (value <= - 127 ) {
110+ return " N/A" ;
111+ }
112+ return Math .round (value) + " C" ;
113+ }
114+
115+ function format_cpu (value , alive ) {
116+ if (! alive || value < 0 ) {
117+ return " N/A" ;
118+ }
119+ return Math .round (value) + " %" ;
120+ }
121+
122+ function format_space_mb (value , alive ) {
123+ if (! alive || value < 0 ) {
124+ return " N/A" ;
125+ }
126+ return Math .round (value) + " MB" ;
127+ }
128+
108129 function uplink_ok () {
109130 if (_ohdSystemGround .tx_operating_mode == 1 ) {
110131 return false ;
@@ -130,6 +151,77 @@ BaseWidget {
130151 BaseWidgetDefaultUiControlElements {
131152 id: idBaseWidgetDefaultUiControlElements
132153 show_transparency: false
154+
155+ Item {
156+ width: parent .width
157+ height: 28
158+ Text {
159+ text: qsTr (" Air CPU temp: %1" ).arg (format_temp (_ohdSystemAir .curr_soc_temp_degree ))
160+ color: " white"
161+ height: parent .height
162+ font .bold : true
163+ font .family : linkFont
164+ font .pixelSize : detailPanelFontPixels
165+ anchors .left : parent .left
166+ verticalAlignment: Text .AlignVCenter
167+ }
168+ }
169+ Item {
170+ width: parent .width
171+ height: 28
172+ Text {
173+ text: qsTr (" GND CPU temp: %1" ).arg (format_temp (_ohdSystemGround .curr_soc_temp_degree ))
174+ color: " white"
175+ height: parent .height
176+ font .bold : true
177+ font .family : linkFont
178+ font .pixelSize : detailPanelFontPixels
179+ anchors .left : parent .left
180+ verticalAlignment: Text .AlignVCenter
181+ }
182+ }
183+ Item {
184+ width: parent .width
185+ height: 28
186+ Text {
187+ text: qsTr (" Air CPU: %1" ).arg (format_cpu (_ohdSystemAir .curr_cpuload_perc , _ohdSystemAir .is_alive ))
188+ color: " white"
189+ height: parent .height
190+ font .bold : true
191+ font .family : linkFont
192+ font .pixelSize : detailPanelFontPixels
193+ anchors .left : parent .left
194+ verticalAlignment: Text .AlignVCenter
195+ }
196+ }
197+ Item {
198+ width: parent .width
199+ height: 28
200+ Text {
201+ text: qsTr (" GND CPU: %1" ).arg (format_cpu (_ohdSystemGround .curr_cpuload_perc , _ohdSystemGround .is_alive ))
202+ color: " white"
203+ height: parent .height
204+ font .bold : true
205+ font .family : linkFont
206+ font .pixelSize : detailPanelFontPixels
207+ anchors .left : parent .left
208+ verticalAlignment: Text .AlignVCenter
209+ }
210+ }
211+ Item {
212+ width: parent .width
213+ height: 28
214+ Text {
215+ text: qsTr (" Rec space: %1" ).arg (format_space_mb (_ohdSystemAir .curr_space_left_mb , _ohdSystemAir .is_alive ))
216+ color: " white"
217+ height: parent .height
218+ font .bold : true
219+ font .family : linkFont
220+ font .pixelSize : detailPanelFontPixels
221+ anchors .left : parent .left
222+ verticalAlignment: Text .AlignVCenter
223+ }
224+ }
133225 }
134226 }
135227
0 commit comments