Skip to content

Commit

Permalink
1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
niccellular committed Jul 21, 2021
1 parent 9868e79 commit ff89ff1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,14 @@
import dji.sdk.products.Aircraft;
import dji.sdk.sdkmanager.DJISDKManager;
import dji.sdk.sdkmanager.LiveStreamManager;
import dji.sdk.sdkmanager.LiveVideoBitRateMode;
import dji.sdk.sdkmanager.LiveVideoResolution;
import dji.ux.widget.FPVOverlayWidget;
import dji.ux.widget.FPVWidget;
import dji.ux.widget.MapWidget;
import dji.ux.widget.controls.CameraControlsWidget;
import dji.ux.widget.dashboard.CompassWidget;

import static java.lang.Math.cosh;
import static java.lang.Math.tan;

/**
* Activity that shows all the UI elements together
*/
Expand Down Expand Up @@ -102,7 +101,7 @@ public class CompleteWidgetActivity extends Activity {
private final Handler stream_handler = new Handler();
private Runnable sensor_runnable, stream_runnable;
// send 4 sensor updates a second
int sensor_delay = 250;
int sensor_delay = 500;
// every 3 seconds try to send a stream cot, stop when we send one successfully
int stream_delay = 3000;

Expand Down Expand Up @@ -484,6 +483,10 @@ public void onClick(View v) {
l.registerListener((x) -> {
Log.d(TAG, "LiveStream callback:" + x);
});

//l.setLiveVideoResolution(new LiveVideoResolution(480, 360));
//l.setLiveVideoResolution(LiveVideoResolution.VIDEO_RESOLUTION_480_360);
//l.setLiveVideoBitRate(LiveVideoBitRateMode.AUTO.getValue());
l.setAudioMuted(true);
l.setVideoSource(LiveStreamManager.LiveStreamVideoSource.Primary);
l.setVideoEncodingEnabled(true);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources>
<string name="app_name">FreeTAK UAS</string>
<string name="app_version">FreeTAK UAS version 1.3</string>
<string name="app_version">FreeTAK UAS version 1.4</string>
<string name="uas_button_disabled">UAS [NOT READY]</string>
<string name="uas_button_enabled">UAS [READY]</string>
<string name="select_all">Select All</string>
Expand Down

0 comments on commit ff89ff1

Please sign in to comment.