Commit Graph

72 Commits

Author SHA1 Message Date
Jon Escombe
07ef48ec06 ANT FE-C Add comments describing alternative slope mode support
If a trainer does not advertise simulation support, it could be
put into power mode, with GC calcuating the required load from
current speed/gradient etc.
2015-11-07 19:10:35 +00:00
Jon Escombe
3c5b41a459 ANT FE-C Remove duplicated check for channel type 2015-11-05 18:37:35 +00:00
Jon Escombe
5220b84bc3 ANT FE-C Check capabilities before setting load in erg mode 2015-11-05 18:13:34 +00:00
Jon Escombe
1b81822df3 ANT FE-C Detect capabilities on initial connection 2015-11-05 18:13:18 +00:00
Jon Escombe
fc4ce118bc ANT FE-C Add periodic refresh of gradient in slope mode
As per the refresh in ergo mode, this is a workaround for
missing acknowledgements.
2015-11-05 13:20:41 +00:00
Jon Escombe
67c3de54e3 Add alternate power support for ANT FE-C devices 2015-11-01 15:39:53 +00:00
Vianney Boyer
644d88a018 clean code (replace qDebug by comments) 2015-10-18 19:18:36 +02:00
Mark Liversedge
1da100608d ANT USBStick1 Serial Device Module
.. different name used. either usb: or usb-serial:
.. this is a bit crappy, but USB1 is old and few people
   seem to care or notice.
2015-10-13 16:24:35 +01:00
Mark Liversedge
cf7b486347 Merge pull request #1591 from vlcvboyer/ant-fec
Ant-fec protocol : additional features (slope simulation mode...)
2015-10-13 15:14:13 +01:00
Joern
1a8d683303 Store GC Settings in multiple .INI files instead of system specific (Registry, PLIST,..) format
... change storage format to .INI files (which is QTs cross-system format)
... differentiate between System, Global and Athlete specific settings
... store the Global Settings in the AthleteDirectory (root)
... store the Athlete specific Settings in the Athletes Names subdir /config
... migrate existing Settings from current location into new formats "on-the-fly"
2015-09-19 11:13:17 +02:00
Vianney Boyer
9b749af6fe do not send SetPower request when not using ERGO mode 2015-08-30 14:38:06 +02:00
Vianney Boyer
dbcd2526c5 add default rolling resistance value and minor fix 2015-08-23 00:19:55 +02:00
Vianney Boyer
a5a0b8741f antfec - send Gradient update to device depending on pgmf 2015-08-22 15:32:03 +02:00
Vianney Boyer
892281b58d WIP - ANT FE-C extension (grade, wind, ack...) 2015-08-22 01:24:36 +02:00
Vianney Boyer
67e455314c Basic ANT FE-C support (stschake contrib) 2015-08-21 10:36:47 +02:00
Mark Liversedge
0f9bd25847 Merge pull request #1245 from stschake/tacxvortex-refresh-load
Periodically refresh Tacx Vortex load setpoint to avoid dropouts
2015-02-02 16:39:29 +00:00
Damien
7b07a380fc ANT: use QDateTime for lastCadenceMessage 2015-01-26 08:16:41 +01:00
Damien
e4d6a5e22c ANT: Priority for cadence from cadence or speed/cadence sensor
fixes #502
2015-01-23 23:36:40 +01:00
Stefan Schake
b5f45d20e6 Periodically refresh Tacx Vortex load setpoint to avoid dropouts
Signed-off-by: Stefan Schake <schake@embedded.rwth-aachen.de>
2015-01-13 21:21:14 +01:00
Stefan Schake
01bec9218e Integrate Tacx Vortex with ANT device logic
Signed-off-by: Stefan Schake <schake@embedded.rwth-aachen.de>
2014-12-30 03:55:53 +01:00
Stefan Schake
e5f178a453 Add Tacx Vortex ANT channel type
Signed-off-by: Stefan Schake <schake@embedded.rwth-aachen.de>
2014-12-30 03:55:50 +01:00
Mark Liversedge
a9a4b924a1 Deprecate kickr command channel
.. Wahoo don't do that anymore.

.. now use the same channel as the device and just send plain old
   ANT+ messages to set slope etc (why they didn't do that in the
   first place is absolutely beyond me)

.. getting ready to implement Kickr for the THIRD time !!!
2014-11-21 14:58:14 +00:00
Mark Liversedge
8cd29d5555 Realtime Moxy Part 2a of 3
.. telemetry is plotted in dialwindow

.. need to do a part b which is the realtime plot
   of thb, smo2, o2hb and hhb to complete part 2
2014-10-31 22:26:02 +00:00
Mark Liversedge
bdc00585ca Realtime Moxy Part 1 of 3
.. added config and page decoding for Moxy

Next steps are (2) add telemetry to realtime data structure
                   and display on the realtime chart and telemetry

               (3) add SmO2 and tHb to file format which means moving
                   away from powertap csv format (!)
2014-10-31 21:15:06 +00:00
Christian Charete
183608d797 Mac compile error on no libusb 2014-08-18 16:07:06 +01:00
Mark Liversedge
347783211f KICKR ANT+ Initial Support
.. the code has been updated to support the Wahoo Kickr
   via an ANT+ USB stick.

.. this requires the Kickr to be running a beta firmware
   of version v1.3.15. This can only be loaded via the
   Wahoo utility.

.. for those that have access to the beta firmware this
   patch will work, for all others they will need to wait
   for the formal release by Wahoo.

.. the code contains *lots* of debug and does not yet support
   calibration and slope mode is largely untested.
2014-08-18 09:46:04 +01:00
Mark Liversedge
406f2d7164 Kickr Constants 2014-07-16 10:24:42 +01:00
Mark Liversedge
0bdf68a5d1 Windows Libusb / UsbXpress should be optional
.. ANT.cpp now happily compiles with no USB support
   present on Windows -- which means ANT will obviously
   no longer work, but that may be intended.
2014-06-22 22:01:52 +01:00
Mark Liversedge
72d9ae1736 Fix rrData signal error 2014-02-01 12:48:24 +00:00
Mark Liversedge
474e58313f Add rrData signal in ANT and Robot
.. to help development of an experimental HRV tool.
2014-01-29 10:30:22 +00:00
Mark Liversedge
64b5e22a91 Revert "ANT+ Don't write 5 blank bytes"
This reverts commit c0b38a193c.

It has introduced errors on Mac and Windows -- we need to better
understand why this is not the case on Linux and whay /exactly/
it is doing that helps on the other platforms.
2014-01-24 08:06:37 +00:00
Mark Liversedge
c0b38a193c ANT+ Don't write 5 blank bytes
.. it doesn't do anything except create errors
2014-01-11 10:25:37 +00:00
Mark Liversedge
aa8605e8d5 QT5 -- 1 of 3
Porting the codebase to QT 5 (5.2) to get the
latest bug fixes, performance and improved platform
support.

This first part is to fixup the codebase to compile
on Qt 5, but some aspects have been broken (video).

The second part is to migrate from Qwt 6.0.1 to the
latest Qwt for multiaxis support.

The third part will be to fixup any platform specific
issues or issues identified at runtime.
2013-12-09 09:57:13 +00:00
Eric Johnson
8de642c9ed Use float division when converting wheel size
In training mode, calculations of speed using wheel size and RPM from
a speed sensor used integer division. This truncated all wheel
circumferences to an integral number of meters. 2100mm wheels were
treated as 2 meters and 1960mm wheels were treated as 1 meter,
effectively reducing calculated speeds by roughly 5% and 50%
respectively.

Fixes #585
Fixes #651
Fixes #669
2013-09-21 17:29:26 +01:00
Mark Liversedge
2ad917326b ANTLogger farce continues
Fixups after testing this evening - the meta object types
are now registered and the file open/close is called as
needed.
2013-05-14 21:57:52 +01:00
Mark Liversedge
febd10a4c3 ANT Logging Fixups
.. accidentally committed the first half of this update
   alongside some changes to the documentation.

.. basically we now pass ANT messages on the stack rather than
   as a pointer (fixes memory corruption issues).

.. the log file is explicitly opened and closed with status maintained
   alongside that to ensure we only log messages when the logfile is open.

.. This is an alternative fixup to the fix proposed by Jon Escombe in
   pull request #597.
2013-05-14 13:33:06 +01:00
Mark Liversedge
732171b57d Documentation: Makeinfo compatibility
.. only use the @input macro if we're not running info -- we only do that
   to get nice fonts in printed output anyway.
2013-05-14 10:00:00 +01:00
Jon Escombe
a9fae9bd0e Whitespace cleanup (tabs to spaces) 2013-05-04 10:42:46 +01:00
Jon Escombe
2108f917a0 Postpone ANT debug log close
Don't stop debug log until the end of the receive thread (else the
traffic from the close channel messages can re-open the log file).
2013-05-04 10:33:10 +01:00
Jon Escombe
d5e5dbc2a6 Close ANT channels before stopping session
This appears to resolve an intermittent issue with the USB2
stick not responding to reset messages when re-opened.
2013-05-04 10:33:09 +01:00
Jon Escombe
b1cb917e03 Move early ANT setup after receive loop is started
Moves the early setup code so that the receive loop is already
running when these messages are transmitted. Doesn't achieve much
at this point, but can visualise the send and receive packet flow
better, and will enable the responses to these messages to be
checked in the future.
2013-05-04 10:33:09 +01:00
Jon Escombe
be47abf45b Add delay after ANT reset message
Wait 500ms after sending reset message (as per ANT+ spec), before
sending any more host commands.
2013-05-04 10:32:03 +01:00
Mark Liversedge
0ffdf84383 Code Cleanup: win32 fixups
.. Bin2RideFile constants might be an issue?
.. otherwise just unused variables
2013-02-13 19:17:56 +00:00
Mark Liversedge
d97ae3c38a Code Cleanup: Compiler nits
.. fix further XCode semantic warning messages (still some left)
.. WIN32 gcc builds
2013-02-13 09:01:20 +00:00
Mark Liversedge
cd2fca9346 Code Cleanup: Remove #if 0 code
As a personal habit I tend to use the C pre-processor to
comment out code blocks I don't want to remove. This is in
case the code will be required in the future.

I think it is now safe to say the code commented out is not
required -- most of it is legacy and marks the transition from
earlier designs or legacy code.

I've done this in one big commit since in theory it has no
functional change, and in future can look in this commit for any
code we may want to reinstate.
2013-02-11 15:00:00 +00:00
Mark Liversedge
d4d457e2db Code Cleaning: ANT+ sources
Removing and fixing 'XXX' code markers across the ANT+
code. Largely this was to confirm against specs and mark
for future support (e.g. burst data, further refactoring
of the quarqd sources).
2013-02-07 12:20:40 +00:00
Mark Liversedge
2474332212 Fix SEGV when pairing ANT+ Speed
Recent update broke this, forgeting that when you are
configuring a device the device configuration will be
null.
2013-01-22 13:24:55 +00:00
Mark Liversedge
a959f7c9d4 Use the device wheelsize!!!
Bug reported by many users, should know better than to
dismiss it so out of hand. There was a bug. The ANT+
code used an old global setting and not the per device
configuration.

Fixes #441
2013-01-11 09:08:31 +00:00
dhague
8c06532465 Refactor antlog.bin output into ANTLogger class
ANT.cpp now emits a signal for each ANTMessage
ANTlocalController wires up this signal to a slot in ANTLogger which
writes the message to antlog.bin

Signed-off-by: dhague <darren.hague@fortybeans.com>
2012-12-18 21:22:34 +00:00
Mark Liversedge
75b1fc21fe Honour wheelsize configuration
Fixes #651.
2012-02-17 14:02:57 +00:00