Comments (8)
The wake-lock should only be enabled when receiving heartbeats from the drone. IF not there could be problem for the user where he forgets the app open without a drone connected.
from tower.
@JaredReabow: the display dims which in daylight can be a big issue
from tower.
Stumbled about the same issue. While being outside in daylight the display dims and became almost impossible to see.
I think the reason for this behavior is that the wake lock is aquired with the parameter "SCREEN_DIM_WAKE_LOCK".
To keep the screen fully bright "SCREEN_BRIGHT_WAKE_LOCK" should be used. Best would be to set it together with "ON_AFTER_RELEASE".
Could look like this "pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK|PowerManager.ON_AFTER_RELEASE, "CPU");"
from tower.
just now I read on http://developer.android.com/reference/android/os/PowerManager.html that "SCREEN_BRIGHT_WAKE_LOCK" is deprecated in API level 13 :(
Will it still work or is there an workaround?
from tower.
Maybe with this: http://developer.android.com/reference/android/view/View.html#setKeepScreenOn(boolean)
But there should be a preference to keep enable this. On thing I notice when I'm flying is that the thing I mostly use is the voice notifications, so keeping the screen dim helps to save the battery.
from tower.
I could not find a way to avoid the screen goes off after some time without touch at the screen.
Device: Samsung Galaxy S3
Android: Jelly Bean 4.1.2
from tower.
I tried SCREEN_BRIGHT_WAKE_LOCK on my Nexus7 with android 4.2.2 and it still works.
As long as it works it's easier to implement it this way :)
To use a preference is a god idea.
Just launched a pull request (#135) with my suggestion for this topic.
from tower.
The code from @realbuxtehuder at pull #135 fixed this issue.
from tower.
Related Issues (20)
- Dead Project. HOT 1
- Feature Request: Waypoint Editor with Profile View
- QGC can be connected via TCP, but the dronekit-android connection is not successful.
- Can't connect after first time
- New french regulations imacting ground stations HOT 1
- Tower does not recognize ChiBios Omnibus F4 board
- Android 9 support?
- Integrate google maps navigation with tower HOT 3
- Google maps not getting displayed on the devDebug Tower app HOT 2
- Tower smart app discontinued? HOT 9
- RESURRECTION
- Merge DroneKit in Tower HOT 1
- What configurations should I edit? HOT 1
- Debug Output
- Compiles for 3.6 beta 5, how to publish?
- Request for removal of dependency of google play services in Tower 4.0010 apk HOT 2
- VD not working
- unknown flight mode Tower app HOT 6
- open in android studio HOT 1
- Adding Bing Map
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tower.