Permalink
Browse files

Add support for Daum realtime devices (#2952)

* 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
  • Loading branch information...
thebaron06 authored and liversedge committed Nov 5, 2018
1 parent b5ed04b commit edb0444b9f4f7c658bc281c1b2c68ef58052a0fd
@@ -204,6 +204,7 @@ DeviceScanner::quickScan(bool deep) // scan quickly or if true scan forever, as
case DEV_MONARK : wizard->controller = new MonarkController(NULL, NULL); break;
case DEV_KETTLER : wizard->controller = new KettlerController(NULL, NULL); break;
case DEV_KETTLER_RACER : wizard->controller = new KettlerRacerController (NULL, NULL); break;
case DEV_DAUM : wizard->controller = new DaumController(NULL, NULL); break;
#endif
#ifdef GC_HAVE_LIBUSB
case DEV_FORTIUS : wizard->controller = new FortiusController(NULL, NULL); break;
@@ -455,6 +456,7 @@ AddSearch::nextId() const
case DEV_MONARK : return 60; break; // confirm and add
case DEV_KETTLER : return 60; break; // confirm and add
case DEV_KETTLER_RACER : return 60; break; // confirm and add
case DEV_DAUM : return 60; break; // confirm and add
case DEV_FORTIUS : return 30; break; // confirm and add
case DEV_IMAGIC : return 35; break; // confirm and add
}
@@ -36,6 +36,7 @@
#include "MonarkController.h"
#include "KettlerController.h"
#include "KettlerRacerController.h"
#include "DaumController.h"
#endif
#include "ANTlocalController.h"
#include "ANTChannel.h"
Oops, something went wrong.

0 comments on commit edb0444

Please sign in to comment.