Improve Virtual Power in Presence of Acceleration Part 1: Rotational Inertial for Custom Virtual Power This change is only enabled when device is defined with non-zero Inertial Moment. When Inertial Moment is not defined or is zero then this change has no effect. Change adds field to device to hold trainer's inertial moment in (KG M^2). This allows power calculation to track energy that passes in and out of trainer's flywheel so that acceleration and deceleration power can be reported immediately. Whenever device sets a new rpm sample a time is recorded alongside which allows the common controller to compute change in rpm over time, which allows calculation of kinetic energy that has entered or left the trainers flywheels during the duration. It is a bit of math to determine a correct I for a trainer's flywheels, especially if the flywheels have different rpms, hopefully we can add the I values for the current built-in virtual power trainers. Part 2: Use average power instead of point power. Moved numerical integration into its own header, its now used by bicyclesim and by virtual power. Changed default integrator to Kahan-Li since in my testing it is stable and converges fastest. Virtual Power now computes average power since previous sample, which has the effect of reducing reported power during acceleration and deceleration. New advanced virtual power is on with this commit. It seems to work very well in my testing. Fixes #3650
GoldenCheetah
About
GoldenCheetah is a desktop application for cyclists and triathletes and coaches, providing a rich set of tools and models to analyse, track and predict performance, optimimise aerodynamics and train indoors.
GoldenCheetah integrates with most popular cloud services like Strava and Todays Plan, imports data from bike computers, imports downloads from any website like TrainingPeaks and Garmin and will also connect to smart trainers using ANT+ and Bluetooth.
GoldenCheetah is free for everyone to use and modify, released under the GPL v2 open source license with pre-built binaries for Mac, Windows and Linux.
Installing
Golden Cheetah install and build instructions are documented for each platform;
INSTALL-WIN32 For building on Microsoft Windows
INSTALL-LINUX For building on Linux
INSTALL-MAC For building on Apple OS X
Official release builds, snapshots and development builds are all available from http://www.goldencheetah.org