-
Notifications
You must be signed in to change notification settings - Fork 0
Home
kupsztal edited this page Nov 4, 2011
·
42 revisions
Welcome to the iTesa wiki!
- Reliability
- add code to close the app properly (aj/jc)
- Phone not responding
Lock landscape/portrait mode
- Data analysis
- Statistical analysis (aj)
average data every N samplesmeasure sensor reading rate (FASTEST, NORMAL, GAME, etc.)
- Binary Data Storage (aj), see also: Data storage
- Needs testing, see next
- Open array of DataItem of length N, fill up (hijack update UI thread temporarily). When buffer full, stop writing to it, output using filestream and close application (aj).
- Get much, much better with threads! (aj)
-
Also, using java.io.Serializable we can write the dataitem B. learn this, and compare to straight DOS, then implement. (aj)We don't need this. Conceptual Designs (aj)understand android data formats- SQLite Database, see also: Data storage
Branch: jakub_preferencesOK. So far I found the bug that was causing the app to crash (bloody comma in SQL statement)data saved : (timestamp, Bx, By, Bz)- database profiling (jc)
- data saved: (timestamp, mag.|B|) GPS: (timestamp, GPS coords) Magnetometer (timestamp, |B|)
- Store data in CSV/TXT file new
-
Add ability to export data to CSV/TXT<-- changed to save data in CSV
-
- App options (accuracy, delay rate etc) (jc)
Branch: jakub_preferencesimplemented basic menu with preferences (UI update refresh rate). It doesn’t work as expected yet because of the way the timer is set.change the way UI is updated (run the sensor reading as service/thread)- we need to remember that the app may need to be run as service
- Plotting functionality - basic (jc)
Branch: (none) - I pushed changes into master branch..refresh chart in separate thread ?? (at the moment refreshed in the same thread as the text)- plot ALL the points (not just one per measurement)
- plot coloured bitmap based on magnetometer data
add background picture
- Merge the branches (jc)
- Test the app, review the code (aj/jc)
setup repo on github (done)write magnetometer test - check values (done)- freq of the measurement (do we actually have any numbers ? not that we need them but would be nice to have)
- Get more tech details from STRaND (5th Nov)
- data analysis, statistics?
- SDK version ? interface to the external hardware ?
- compare data storage latency
- profile code!
- calculate angle of sun based on time and GPS coords.
- work out what are the things like sensorManager.MAGNETIC_FIELD_EARTH_MAX/MIN, RAW_DATA_X/Y/Z, and other * sensorManager features
- should be able to run for at least 90 mins w/o crashing or freezing
- sensor measurements should be decoupled from the UI update
- sensor measurements should be decoupled from the plot update
- plot update should be decoupled from the UI update
- option for selecting frequency of measurement/UI/plot updates
- the code should be flexible enough to be able to choose between sqlite database and raw file for data storage
- "There are two basic rules for writing efficient code:
- Don't do work that you don't need to do.
- Don't allocate memory if you can avoid it.
- http://www.sensorplatforms.com/understanding-smart-phone-sensor-performance-magnetometer-2
- http://www.nasa.gov/centers/goddard/news/topstory/2004/0517magnet.html
- http://geomag.org/info/declination.html
- http://son.nasa.gov/tass/magnetosphere/sat_ace.htm - ACE magnetic field (real-time)
- http://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml - The World Magnetic Model
- http://science.nasa.gov/science-news/science-at-nasa/2008/16dec_giantbreach/
- http://www.launchbase.net/magnetometer/encyclopedia.htm
- ftpbrowser.gsfc.nasa.gov/magsat.html - MAGSAT data
- http://tes.jpl.nasa.gov/instrument/orbitcoverage/ - see the picture
- http://geo.phys.spbu.ru/~tsyganenko/modeling.html - Modeling the Earth's Magnetosphere
- http://ebooks.cambridge.org/ebook.jsf?bid=CBO9780511529474 - Physics of the Space Environment
- http://ebooks.cambridge.org/ebook.jsf?bid=CBO9780511525032 - Spacecraft-Environment Interactions
- http://ebooks.cambridge.org/ebook.jsf?bid=CBO9780511584503 - Principles of Space Instrument Design
- http://cheat.errtheblog.com/s/git
- http://gitref.org/index.html
- http://progit.org/book/
- .gitignore when working with Android in Eclipse :
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# generated files
bin/
gen/
# Local configuration file (sdk path, etc)
local.properties
# Eclipse project
.classpath
.project
-
Designing for Performance
- the System.arraycopy method is about 9x faster than a hand-coded loop on a Nexus One with the JIT.
- http://www.eclipse.org/mat/
- Multitasking in Android
- Utilities that help in the design and development of Android application user interfaces.
- Professional Android 2 Application Development - Code Download
- NDK Tutorial by tutsplus.com + Android Beginners NDK step by step by mindtherobot.com
- Using NDK to Call C code from Android Apps
http://www.rbgrn.net/content/348-get-your-eclipse-integrated-ndk-on- http://codemaemo.appforce.org/2010/07/tutorial-using-eclipse-for-ndk-projects/
- http://groups.google.com/group/android-ndk/browse_thread/thread/612fbca85437edae/c43da3a2fe6a01c2?lnk=gst&q=sensor#c43da3a2fe6a01c2
- http://stackoverflow.com/questions/4200119/access-android-sensors-via-ndk
- http://stackoverflow.com/questions/1916660/need-to-read-android-sensors-really-fast
- http://developer.android.com/reference/android/app/NativeActivity.html
- http://mobilepearls.com/labs/native-android-api/STABLE-APIS.html