flash based config testing

Dependencies:   mbed

Committer:
bwang
Date:
Wed Mar 01 00:52:47 2017 +0000
Revision:
0:941e150e78b6
first commit, reading/writing of config arrays works

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bwang 0:941e150e78b6 1 #ifndef __CONFIG_DRIVING
bwang 0:941e150e78b6 2 #define __CONFIG_DRIVING
bwang 0:941e150e78b6 3
bwang 0:941e150e78b6 4 #define TORQUE_MODE true
bwang 0:941e150e78b6 5
bwang 0:941e150e78b6 6 /*forward torque scaling*/
bwang 0:941e150e78b6 7 #define MAX_TQPCT_PLUS 1.0f
bwang 0:941e150e78b6 8
bwang 0:941e150e78b6 9 /*reverse/regen torque scaling*/
bwang 0:941e150e78b6 10 #define MAX_TQPCT_MINUS 0.3f
bwang 0:941e150e78b6 11
bwang 0:941e150e78b6 12 /*maximum torque for approximate methods*/
bwang 0:941e150e78b6 13 #define TORQUE_MAX 75.0f
bwang 0:941e150e78b6 14
bwang 0:941e150e78b6 15 /*max speed, including any field weakening, rad/s*/
bwang 0:941e150e78b6 16 #define W_MAX 1000.0f
bwang 0:941e150e78b6 17
bwang 0:941e150e78b6 18 #endif