+ boolean is_telemini() {
+ String product = product_value.getText();
+ return product != null && product.startsWith("TeleMini");
+ }
+
+ boolean is_telemetrum() {
+ String product = product_value.getText();
+ return product != null && product.startsWith("TeleMetrum");
+ }
+
+ void set_radio_calibration_tool_tip() {
+ if (radio_calibration_value.isEnabled())
+ radio_calibration_value.setToolTipText("Tune radio output to match desired frequency");
+ else
+ radio_calibration_value.setToolTipText("Cannot tune radio while connected over packet mode");
+ }
+
+ void set_radio_enable_tool_tip() {
+ if (radio_enable_value.isEnabled())
+ radio_enable_value.setToolTipText("Enable/Disable telemetry and RDF transmissions");
+ else
+ radio_enable_value.setToolTipText("Firmware version does not support disabling radio");
+ }
+
+ void set_flight_log_max_tool_tip() {
+ if (flight_log_max_value.isEnabled())
+ flight_log_max_value.setToolTipText("Size reserved for each flight log (in kB)");
+ else {
+ if (is_telemetrum())
+ flight_log_max_value.setToolTipText("Cannot set max value with flight logs in memory");
+ else if (is_telemini())
+ flight_log_max_value.setToolTipText("TeleMini stores only one flight");
+ else
+ flight_log_max_value.setToolTipText("Cannot set max flight log value");
+ }
+ }
+
+ void set_ignite_mode_tool_tip() {
+ if (ignite_mode_value.isEnabled())
+ ignite_mode_value.setToolTipText("Select when igniters will be fired");
+ else
+ ignite_mode_value.setToolTipText("Older firmware could not select ignite mode");
+ }
+
+ void set_pad_orientation_tool_tip() {
+ if (pad_orientation_value.isEnabled())
+ pad_orientation_value.setToolTipText("How will TeleMetrum be mounted in the airframe");
+ else {
+ if (is_telemetrum())
+ pad_orientation_value.setToolTipText("Older TeleMetrum firmware must fly antenna forward");
+ else if (is_telemini())
+ pad_orientation_value.setToolTipText("TeleMini doesn't care how it is mounted");
+ else
+ pad_orientation_value.setToolTipText("Can't select orientation");
+ }
+ }
+