Re: [SailfishDevel] Measuring distance with GPS
Dnia 2014-07-08, wto o godzinie 21:32 +0200, Caliste Damien pisze: > - if you sum up the distance between GPS fix at regular intervals > (some seconds), you may end up with a total distance that is greater > than the actual distance, especially because of some portions of your > path that are not very accurate and put you away from your actual path > (think about passing under a bridge, or your GPS is in your pocket, or > you are close to the start of the GPS fix so the accuracy is still > low…) GPS coordinate oscillates around correct value. I would advise to consider only distances that are over a predefined threshold. i.e. ignore "moves" that are smaller than i.e. 15 meters. -- smoku @ http://abadcafe.pl/ @ http://www.xiaoka.com/ signature.asc Description: This is a digitally signed message part ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] [Minutes] Meeting on SailfishOS, open source, collaboration: 8-July @ 15:00 UTC
Hi, Thanks to everyone who attended today's meeting. Minutes/logs: Minutes: http://merproject.org/meetings/mer-meeting/2014/mer-meeting.2014-07-08-15.00.html Minutes (text): http://merproject.org/meetings/mer-meeting/2014/mer-meeting.2014-07-08-15.00.txt Log: http://merproject.org/meetings/mer-meeting/2014/mer-meeting.2014-07-08-15.00.log.html Next meeting will be on 2014-07-22 @ 10:00 UTC. Please propose discussion topics, with some content/details at: http://piratepad.net/SailfishOSSMeetings Add your name/nick if you suggest a topic and will present the topic at the meeting, or name someone who should present. *Inform the persons who are directly involved in the topic beforehand so they can prepare and attend the meeting. * Indicate how much time approximately you will need for the topic so we can timebox the meeting accordingly. NOTE: Propose your topic by Friday 18.7. Any topics added after that will be considered for the following meeting. Thanks, Thomas PS: Yes the BRA vs. GER match got that boring, that I'm writing meeting minute mails… ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Measuring distance with GPS
Oops, forgot the link: [0] https://lists.sailfishos.org/pipermail/devel/2014-January/002819.html ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Measuring distance with GPS
8.7.2014 21:32, Caliste Damien: Hello, Le lundi 07 juillet 2014, Timur Kristóf a écrit : I'd like to ask a simple question: what is the simplest way to make a Sailfish app that measures the distance the user has walked. Answers have been already given on how to do this in C++ or in QML. I just would like to add some remarks : - if you sum up the distance between GPS fix at regular intervals (some seconds), you may end up with a total distance that is greater than the actual distance, especially because of some portions of your path that are not very accurate and put you away from your actual path (think about passing under a bridge, or your GPS is in your pocket, or you are close to the start of the GPS fix so the accuracy is still low…) - I don't know how Modrana is doing this, but I decided to keep for actual distance measurements, only fixes with a reasonable horizontal accuracy (e.g. lower that 30 meters), in my application (cf. Maep-qt on github) ModRana actually doesn't do anything fancy - every time a position update comes in, it computes the distance from the last point and adds the distance to the total. Only "filtering" it does is on what it appends to the tracklog - modRana only appends points that are more than a given threshold distant from the last point. This is done to skip recording of needless points when the user is not moving but has not paused the logging. I guess it might not be a bad idea to apply the same metric also to the cumulative distance. Also regarding the accuracy data values the Jolla reports - horizontal and vertical accuracy are always the same. Unfortunately this seems to be a hardware limitation, not a bug. [0] And from my testing the altitude-valid field switches on/off every other second. While these observations are probably not that important for normal mostly 2D usage, it might be good to take them into account when using the GPS data in 3D (route profiles, 3D distance, airplanes). - It's quite interesting to save a series of fixes at 1 second interval for instance from start of GPS to end of 30 minutes walking in different conditions. When plotting h_acc(t), you can see that it's improving by plateau and when the signal is correct (typically after some minutes) the h_acc is below 30m for most of the fixes. Then, plot deltaD(t) and h_acc(t) together (deltaD being the distance walked in 1 second), you'll see that for high h_acc values the deltaD values are quite spurious for a walking person and thus should be ignored. Interesting! :) Thus, I would suggest to calculate the total distance by summing up distances between fixes with a lower enough horizontal accuracy. Regards, Damien. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Measuring distance with GPS
Hello, Le lundi 07 juillet 2014, Timur Kristóf a écrit : > I'd like to ask a simple question: what is the simplest way to make a > Sailfish app that measures the distance the user has walked. Answers have been already given on how to do this in C++ or in QML. I just would like to add some remarks : - if you sum up the distance between GPS fix at regular intervals (some seconds), you may end up with a total distance that is greater than the actual distance, especially because of some portions of your path that are not very accurate and put you away from your actual path (think about passing under a bridge, or your GPS is in your pocket, or you are close to the start of the GPS fix so the accuracy is still low…) - I don't know how Modrana is doing this, but I decided to keep for actual distance measurements, only fixes with a reasonable horizontal accuracy (e.g. lower that 30 meters), in my application (cf. Maep-qt on github) - It's quite interesting to save a series of fixes at 1 second interval for instance from start of GPS to end of 30 minutes walking in different conditions. When plotting h_acc(t), you can see that it's improving by plateau and when the signal is correct (typically after some minutes) the h_acc is below 30m for most of the fixes. Then, plot deltaD(t) and h_acc(t) together (deltaD being the distance walked in 1 second), you'll see that for high h_acc values the deltaD values are quite spurious for a walking person and thus should be ignored. Thus, I would suggest to calculate the total distance by summing up distances between fixes with a lower enough horizontal accuracy. Regards, Damien. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Jolla Launcher on Galaxy S2
> I knew someone is keen on this channel, I think that channel is totally > userunfriendly and not a good system. This mailing list is the wrong place for this. > If you mean it is do-able, to update the android with the jolla system, > then provide it, we dont need gui layers nor uninstalled knoppix-like > evaluation systems. > we need a jolla updater to replace android. Furthermore disable-sliders > for cam and mic and a battery with min. 6800 mAH. > thx. regards. Sorry, "would be doable" was a type, I meant "wouldn't be doable" ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Jolla Launcher on Galaxy S2
I knew someone is keen on this channel, I think that channel is totally userunfriendly and not a good system. If you mean it is do-able, to update the android with the jolla system, then provide it, we dont need gui layers nor uninstalled knoppix-like evaluation systems. we need a jolla updater to replace android. Furthermore disable-sliders for cam and mic and a battery with min. 6800 mAH. thx. regards. 2014-07-08 20:59 GMT+02:00 Kondou : > > Hi there, > > here is my feedback on the Jolla Launcher for the Galaxy S2 > > I installed Cyanogenmod on my Galaxy S2, that brought Android 4.3 > > So the Launcher worked here and all is pretty. > > You should rather post this on https://together.jolla.com/ > > to > > overwrite the android kernel fully. Besides that, this would > be doable at all with just a simple app. > ___ > ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Why this error now?
El Tuesday 08 July 2014, Chris Walker escribió: > #ifdef QT_QML_DEBUG > #include > #endif (...) > I can easily fix it by adding #include and it all then > works as expected but my query is this. Why does it work in debug mode > with no errors but fails in release mode? Why the #ifdef? -- Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2 http://barnacity.net/ | http://disperso.net ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Jolla Launcher on Galaxy S2
> Hi there, > here is my feedback on the Jolla Launcher for the Galaxy S2 > I installed Cyanogenmod on my Galaxy S2, that brought Android 4.3 > So the Launcher worked here and all is pretty. You should rather post this on https://together.jolla.com/ using the tag jolla-launcher, instead of this development centered mailing list. > I just have one recommendation, It seems to be just a gui layer? as the > kernel and device info stell speaks of android and the settings is as > well from android. > > I would prefer to have as well the Jolla Sailfish OS updater in the > launcher, so that the updates can be installed like on the other half phone. > > Would be cool to have the OS updater as well in the launcher and to > overwrite the android kernel fully. > > Thanks. That's what the jolla launcher is about. Testing the sailfish feel without installing sailfish os on your device. Besides that, this would be doable at all with just a simple app. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Jolla Launcher on Galaxy S2
Hi there, here is my feedback on the Jolla Launcher for the Galaxy S2 I installed Cyanogenmod on my Galaxy S2, that brought Android 4.3 So the Launcher worked here and all is pretty. I just have one recommendation, It seems to be just a gui layer? as the kernel and device info stell speaks of android and the settings is as well from android. I would prefer to have as well the Jolla Sailfish OS updater in the launcher, so that the updates can be installed like on the other half phone. Would be cool to have the OS updater as well in the launcher and to overwrite the android kernel fully. Thanks. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] emulator crashes
Previously I forgot to write CPU type at home. It's Intel Core2 Duo CPU E6300 @1.86GHz supported H/W technologies as reported by Intel's utility virtualization technology: yes hyper-threading technology: no 64 Architecture:yes Enchanced speedstep technology:yes SSE/2/3/4yes/yes/yes/no (no support for SSE4) advanced vector extensions no AES new instructions no Intel VT-x with extended page tables no With or without the virtualization enabled at home everything works perfectly. There is no emulator crash. Anyway, for now I can live with only working at home, but has anybody managed to debug from Windows on the emulator or the actual device? Because when I try to debug my game (not using Qt, just plain makefile) I am asked for an executable and I don't know what to select. The QtCreator IDE doesn't produce any recognised by Windows executable. My makefile: # Name of the application TARGET := harbour-inversekinematics # DST_DEVICE := Emulator DST_DEVICE := Device # Source code files SOURCES := $(wildcard ./src/*.cpp) SOURCES += $(wildcard ./src/*.c) # pkg-config requirements PKGS := sdl2 glesv1_cm SDL2_image SDL2_ttf SDL2_mixer ifeq ($(DST_DEVICE),Device) PKGS += audioresource glib-2.0 endif DESKTOP_FILE := $(patsubst %,%.desktop,$(TARGET)) ICON_FILE := $(patsubst %,%.png,$(TARGET)) DESKTOPS := $(patsubst %,%.desktop,$(TARGET)) DATA_FILES := Home DESTDIR ?= PREFIX ?= /usr DATADIR := $(PREFIX)/share/$(TARGET)/ CXXFLAGS ?= -g CXXFLAGS += -DDATADIR=\"$(DATADIR)\" CXXFLAGS += -Os CXXFLAGS += -ffunction-sections CXXFLAGS += -fdata-sections CXXFLAGS += -pipe -O2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -Wno-psabi -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -W -D_REENTRANT -fPIE ifeq ($(DST_DEVICE),Device) CXXFLAGS += -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mno-thumb endif CXXFLAGS += -Wno-comment -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-unused-but-set-variable CXXFLAGS += -pie -rdynamic -L/usr/lib/ -lpthread CXXFLAGS += -lSDL2 -lEGL -lGLESv1_CM -lGLESv2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer ifeq ($(DST_DEVICE),Device) CXXFLAGS += -laudioresource -lglib-2.0 endif CXXFLAGS += -I./inc LDFLAGS := -s PKGCONFIG_FLAGS := $(shell pkg-config --libs --cflags $(PKGS)) all: $(TARGET) $(TARGET): $(SOURCES) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(PKGCONFIG_FLAGS) INSTALLMSG := @echo INSTALLCMD := @install install: $(TARGET) $(DESKTOP_FILE) $(ICON_FILE) $(INSTALLMSG) Installing binary $(INSTALLCMD) -d $(DESTDIR)$(PREFIX)/bin/ $(INSTALLCMD) -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/ $(INSTALLMSG) Installing .desktop file $(INSTALLCMD) -d $(DESTDIR)$(PREFIX)/share/applications/ $(INSTALLCMD) -m644 $(DESKTOP_FILE) $(DESTDIR)$(PREFIX)/share/applications/ $(INSTALLMSG) Installing icon file $(INSTALLCMD) -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/86x86/apps/ $(INSTALLCMD) -m644 $(ICON_FILE) $(DESTDIR)$(PREFIX)/share/icons/hicolor/86x86/apps/ $(INSTALLMSG) Installing data files mkdir -m 0777 $(DESTDIR)$(DATADIR) chmod 777 $(DESTDIR)$(DATADIR) cp -r $(DATA_FILES) $(DESTDIR)$(DATADIR) chmod -R 0777 $(DESTDIR)$(DATADIR) clean: rm -f $(TARGET) .PHONY: all install clean ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] emulator crashes
I'm sorry for not returning earlier with my home's PC specification: supported H/W technologies as reported by Intel's utility virtualization technology: yes hyper-threading technology: no 64 Architecture:yes Enchanced speedstep technology:yes SSE/2/3/4yes/yes/yes/no (no support for SSE4) advanced vector extensions no AES new instructions no Intel VT-x with extended page tables no With or without the virtualization enabled at home everything works perfectly. There is no emulator crash. Anyway, for now I can live with only working at home, but has anybody managed to debug from Windows on the emulator or the actual device? Because when I try to debug my game (not using Qt, just plain makefile) I am asked for an executable and I don't know what to select. The QtCreator IDE doesn't produce any recognised by Windows executable. My makefile: # Name of the application TARGET := harbour-inversekinematics # DST_DEVICE := Emulator DST_DEVICE := Device # Source code files SOURCES := $(wildcard ./src/*.cpp) SOURCES += $(wildcard ./src/*.c) # pkg-config requirements PKGS := sdl2 glesv1_cm SDL2_image SDL2_ttf SDL2_mixer ifeq ($(DST_DEVICE),Device) PKGS += audioresource glib-2.0 endif DESKTOP_FILE := $(patsubst %,%.desktop,$(TARGET)) ICON_FILE := $(patsubst %,%.png,$(TARGET)) DESKTOPS := $(patsubst %,%.desktop,$(TARGET)) DATA_FILES := Home DESTDIR ?= PREFIX ?= /usr DATADIR := $(PREFIX)/share/$(TARGET)/ CXXFLAGS ?= -g CXXFLAGS += -DDATADIR=\"$(DATADIR)\" CXXFLAGS += -Os CXXFLAGS += -ffunction-sections CXXFLAGS += -fdata-sections CXXFLAGS += -pipe -O2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -Wno-psabi -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -W -D_REENTRANT -fPIE ifeq ($(DST_DEVICE),Device) CXXFLAGS += -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mno-thumb endif CXXFLAGS += -Wno-comment -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-unused-but-set-variable CXXFLAGS += -pie -rdynamic -L/usr/lib/ -lpthread CXXFLAGS += -lSDL2 -lEGL -lGLESv1_CM -lGLESv2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer ifeq ($(DST_DEVICE),Device) CXXFLAGS += -laudioresource -lglib-2.0 endif CXXFLAGS += -I./inc LDFLAGS := -s PKGCONFIG_FLAGS := $(shell pkg-config --libs --cflags $(PKGS)) all: $(TARGET) $(TARGET): $(SOURCES) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(PKGCONFIG_FLAGS) INSTALLMSG := @echo INSTALLCMD := @install install: $(TARGET) $(DESKTOP_FILE) $(ICON_FILE) $(INSTALLMSG) Installing binary $(INSTALLCMD) -d $(DESTDIR)$(PREFIX)/bin/ $(INSTALLCMD) -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/ $(INSTALLMSG) Installing .desktop file $(INSTALLCMD) -d $(DESTDIR)$(PREFIX)/share/applications/ $(INSTALLCMD) -m644 $(DESKTOP_FILE) $(DESTDIR)$(PREFIX)/share/applications/ $(INSTALLMSG) Installing icon file $(INSTALLCMD) -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/86x86/apps/ $(INSTALLCMD) -m644 $(ICON_FILE) $(DESTDIR)$(PREFIX)/share/icons/hicolor/86x86/apps/ $(INSTALLMSG) Installing data files mkdir -m 0777 $(DESTDIR)$(DATADIR) chmod 777 $(DESTDIR)$(DATADIR) cp -r $(DATA_FILES) $(DESTDIR)$(DATADIR) chmod -R 0777 $(DESTDIR)$(DATADIR) clean: rm -f $(TARGET) .PHONY: all install clean ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Why this error now?
A wild guess: When debugging, you have QML debug enabled, that causes including of , that itself includes the header ? - Mail original - De: "Chris Walker" À: devel@lists.sailfishos.org Envoyé: Mardi 8 Juillet 2014 14:13:01 Objet: [SailfishDevel] Why this error now? I'm trying to deploy my app to my phone and on the emulator it works - in debug mode. But as soon as I switch to release mode, it keels over. Here's the cpp code where it fails :- #ifdef QT_QML_DEBUG #include #endif #include #include #include #include "DatabaseManager.h" Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer app(SailfishApp::application(argc, argv)); QScopedPointer view(SailfishApp::createView()); DatabaseManager* db = new DatabaseManager(); db->open(); view->rootContext()->setContextProperty("db", db); view->setSource(SailfishApp::pathTo("qml/beertent.qml")); view->show(); return app->exec(); } The error is invalid use of incomplete type 'struct QQmlContext' I can easily fix it by adding #include and it all then works as expected but my query is this. Why does it work in debug mode with no errors but fails in release mode? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Why this error now?
I'm trying to deploy my app to my phone and on the emulator it works - in debug mode. But as soon as I switch to release mode, it keels over. Here's the cpp code where it fails :- #ifdef QT_QML_DEBUG #include #endif #include #include #include #include "DatabaseManager.h" Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer app(SailfishApp::application(argc, argv)); QScopedPointer view(SailfishApp::createView()); DatabaseManager* db = new DatabaseManager(); db->open(); view->rootContext()->setContextProperty("db", db); view->setSource(SailfishApp::pathTo("qml/beertent.qml")); view->show(); return app->exec(); } The error is invalid use of incomplete type 'struct QQmlContext' I can easily fix it by adding #include and it all then works as expected but my query is this. Why does it work in debug mode with no errors but fails in release mode? ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Next meeting on SailfishOS, open source, collaboration: 8-July @ 15:00 UTC
Hi! Thanks to all who've responded on http://piratepad.net/SailfishOSSMeetings Sorry about the short notice (due to a slight miscommunication). Here's the invitation/agenda for today's meeting: Date: 8 July 2014 Time: 15:00 UTC, for your local time: http://bit.ly/1k1QILR Duration 60 minutes (only 2 topics, holidays starting) Chair: Thomas Ruecker (tbr) Location: #mer-meeting on Freenode IRC Those without an IRC client can access it here: http://webchat.freenode.net?channels=mer-meeting Current proposed topics: * Intro (5 min) * Moderator's for Mailing list, IRC, TJC - iekku (15 min) * Updates about previous meetings topics - faenil (15 min) * General discussion / informal meetup - open (20 min) * Wrap up and next meeting (5 min) Please familiarize yourself with the topics before the meeting, as well as the common Meetbot commands https://wiki.debian.org/MeetBot (it's used for meeting management and logging) Thanks and see you soon! Br, Carol. -- Carol "cybette" Chen Community Chief @ Jolla http://jolla.com +358403502527 @ SMS,PSTN,WeChat cybette @ FreenodeIRC,Twitter,Weibo,LinkedIn,Skype ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Measuring distance with GPS
Thank you guys for the awesome answers! Cheers, Timur On Tue, Jul 8, 2014 at 12:21 AM, Martin Kolman wrote: > 7.7.2014 20:13, Timur Kristóf: > > Hi, > > I'd like to ask a simple question: what is the simplest way to make a > Sailfish app that measures the distance the user has walked. Preferably > using QML only, but I'm not afraid of writing QML code either. > > Just use the QtPositioning QML interface[0], it should give you everything > you need - current position and support for computing distance between > coordinates. > > [0] http://qt-project.org/doc/qt-5/qtpositioning-qmlmodule.html > > > Thanks, > Timur > > > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org > > > > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to > devel-unsubscr...@lists.sailfishos.org > ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org