Electric Locomotive control system. Touch screen driver control, includes regenerative braking, drives 4 brushless motors, displays speed MPH, system volts and power
Dependencies: BSP_DISCO_F746NG FastPWM LCD_DISCO_F746NG SD_DISCO_F746NG TS_DISCO_F746NG mbed
Diff: costab.cpp
- Revision:
- 1:8ef34deb5177
- Parent:
- 0:23cc72b18e74
--- a/costab.cpp Sun Nov 12 06:26:29 2017 +0000 +++ b/costab.cpp Mon Nov 13 09:53:00 2017 +0000 @@ -1,4 +1,8 @@ #include "mbed.h" +/* +Purpose of this file is to provide sin and cos functions. Yes, C++ has these already, but using inbuilt sin and cos on +DISCO-F746NG causes display to flicker! Interrupt getting missed or whatever, these look-up functions solve the flicker ! +*/ static const double HALF_PI = 2.0 * atan(1.0); static const double TWO_PI = 8.0 * atan(1.0);