* train: add support for serial daum devices
Add support for daum devices connected via serial port.
Such device could be:
- Daum Vital
- Daum ergo_bike series
* ergo_bike_2002
* ergo_bike 4004 TRS
* ergo_bike cardio
* ergo_bike vita
* ergo_bike fitness
The only device I own is a Daum Vital, therfore this is the only device
that is known to work correctly.
The default behaviour is to send the load to the device only once to
allow the user to interact with the device. The profile field is used
to pass a _force_ flag in form of a string containing the word _force_.
Doing so will cause the implementation to send the load to the device
every _poll interval_ (default 1s), except the training is paused.
Signed-off-by: Florian Nairz <nairz.florian@gmail.com>
* train: daum: fix unsigned/signed compare mismatch and add return value
Introducing a directory structure to make it a bit less
daunting for new developers and perhaps even old hands.
The main folders all start with an upper character, so src
files are now located in;
* Core - Core data structures
* Gui - Main GUI elements
* Metrics - Models and Metrics
* FileIO - Device and File I/O
* Charts - All the chart types
* Cloud - Working with Web Resources
* Train - Anything Train View specific
* ANT - Our ANT+ Stack
* Resources - Images, Translations, Web etc
Apologies to anyone who needs to merge across this update.