Files
hoverboard-firmware-hack-SIN/01_Matlab/BLDC_controller_ert_rtw/html/metrics.js
EmanuelFeru bf9725159d ► Added speed threshold to enable Phase Advance
- Phase Advance is enabled only when Motor Speed > n_motPhaAdvEna (400 rpm). This prevents that during a kick-down (100% duty cycle) the Phase advance kicks in even though we are running at low speed.
- This update improves the acceleration response
- no impact on code execution time
2019-06-11 21:24:08 +02:00

33 lines
1.4 KiB
JavaScript

function CodeMetrics() {
this.metricsArray = {};
this.metricsArray.var = new Array();
this.metricsArray.fcn = new Array();
this.metricsArray.fcn["BLDC_controller_initialize"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
stack: 16,
stackTotal: 16};
this.metricsArray.fcn["BLDC_controller_step"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
stack: 60,
stackTotal: 69};
this.metricsArray.fcn["div_nde_s32_floor"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
stack: 0,
stackTotal: 0};
this.metricsArray.fcn["intrp1d_s16s32s32u8u32n31l_s"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
stack: 4,
stackTotal: 4};
this.metricsArray.fcn["plook_u8s32u32n31_evenc_s"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c",
stack: 9,
stackTotal: 9};
this.getMetrics = function(token) {
var data;
data = this.metricsArray.var[token];
if (!data) {
data = this.metricsArray.fcn[token];
if (data) data.type = "fcn";
} else {
data.type = "var";
}
return data; };
this.codeMetricsSummary = '<a href="BLDC_controller_metrics.html">Global Memory: 0(bytes) Maximum Stack: 60(bytes)</a>';
}
CodeMetrics.instance = new CodeMetrics();