[Kflog-user] Suggestion for KFlog: Flarm integration
Eggert Ehmke
eggert.ehmke at berlin.de
Tue Aug 2 10:36:39 CEST 2011
Hello,
I started some basic integration of Flarm devices. As a beginning, I
implemented an export function that allows to export the flarmcfg.txt file. As
a next step the upload of the task data via the serial interface makes sense.
Before I start to check in the updates I want to discuss the approach.
I added a new plugin for the Flarm device. A file export is not supported up
to now by other recorder plugins. But because the format is device specific,
it makes sense to have this function in the recorder plugin itself. I
implemented it as virtual method that is marked "not supported" by the other
plugins. Because it works on local file, no actual recorder connection is
required. Because the format of the flarmcfg.txt file is similar to the upload
data, we can expect to reuse this function.
Currently the file is written to the home directory of the user. But of course
we could write it directly to a mounted sd card.
In the user interface, the new plugin appears as recorder type FLarm. The
created lib is libkfrfla. The export function is part of the Declaration
screen. It is disabled (but visible) for all other recorders. See attached
screen shots. The created flarmcfg.txt (zipped) is also attached.
Please comment and let me know if this approach is ok for you.
Regards
Eggert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kflog-screen1.png
Type: image/png
Size: 34795 bytes
Desc: not available
Url : http://kflog.org/pipermail/kflog-user/attachments/20110802/bfff71f7/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kflog-screen2.png
Type: image/png
Size: 41541 bytes
Desc: not available
Url : http://kflog.org/pipermail/kflog-user/attachments/20110802/bfff71f7/attachment-0003.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flarmcfg.zip
Type: application/zip
Size: 527 bytes
Desc: not available
Url : http://kflog.org/pipermail/kflog-user/attachments/20110802/bfff71f7/attachment-0001.zip
More information about the Kflog-user
mailing list