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.
Diff: BREMS/derived.h
- Revision:
- 189:760cd81a7633
- Parent:
- 188:43f50a4cc040
- Child:
- 190:01674f19f9ce
diff -r 43f50a4cc040 -r 760cd81a7633 BREMS/derived.h --- a/BREMS/derived.h Sat Feb 10 00:13:04 2018 +0000 +++ b/BREMS/derived.h Sat Feb 10 02:47:07 2018 +0000 @@ -6,9 +6,11 @@ #ifndef __DERIVED_H #define __DERIVED_H +#include "layout.h" #include "defaults.h" +#include "prefs.h" -/*max modulation depth at which inveter is still linear*/ +/*max modulation depth at which inverter is still linear*/ #define LINEAR_MODULATION_MAX (2.f * LINEAR_DTC_MAX - 1.f) /*internally computed loop parameters*/ @@ -18,6 +20,6 @@ #define KP_Q (K_LOOP_Q / BUS_VOLTAGE / LINEAR_MODULATION_MAX) #define KI_Q (KI_BASE_Q * K_LOOP_Q / BUS_VOLTAGE * 5000.0f / F_SW / LINEAR_MODULATION_MAX) -#define SLOW_LOOP_COUNTER ((int) (F_SW / F_SLOW_LOOP)) +#define SLOW_LOOP_COUNTER ((int) (_F_SW / _F_SLOW_LOOP)) #endif \ No newline at end of file