Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MODSERIAL telemetry-master
Fork of coolcarsuperfast by
Diff: main.cpp
- Revision:
- 23:bf38d7d2255a
- Parent:
- 19:d9746cc2ec80
- Child:
- 24:7fc204a3d013
diff -r d9746cc2ec80 -r bf38d7d2255a main.cpp --- a/main.cpp Tue Apr 28 17:13:33 2015 +0000 +++ b/main.cpp Tue Apr 28 22:29:41 2015 +0000 @@ -85,10 +85,10 @@ int numInterrupts = 0; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Tuning Values that can make it or break it ~~~~~~~~~~~~~~~~~~~~~~~~ -float pulsewidth = 0.14f; +float pulsewidth = 0.2f; int intTimMod = 0; -int maxValThresh = .1; //~.1 for earlier in the day, reduce it (maybe something like .05 - .01 or something) as it gets darker -bool turnSpeedControl = false; //have increased PWMs when turning when true. +float maxValThresh = .12; //~.1 for earlier in the day, reduce it (maybe something like .05 - .01 or something) as it gets darker +bool turnSpeedControl = true; //have increased PWMs when turning when true. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Hardware periods