summaryrefslogtreecommitdiff
path: root/src/c/CACSD/lqe
diff options
context:
space:
mode:
authorSiddhesh Wani2017-05-04 16:15:18 +0530
committerSiddhesh Wani2017-05-04 16:15:18 +0530
commite36eac94dd517bb69d3e5782516ee58942451991 (patch)
tree54347eba02cd5287ac5884ab84a5ca0c99f33edb /src/c/CACSD/lqe
parentc7e9597db39140c1d982f796a8e1f03bb54e7905 (diff)
downloadScilab2C_fossee_old-e36eac94dd517bb69d3e5782516ee58942451991.tar.gz
Scilab2C_fossee_old-e36eac94dd517bb69d3e5782516ee58942451991.tar.bz2
Scilab2C_fossee_old-e36eac94dd517bb69d3e5782516ee58942451991.zip
Basic functions and image processing working with MSVC on windows x64
Diffstat (limited to 'src/c/CACSD/lqe')
-rw-r--r--src/c/CACSD/lqe/dlqea.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/c/CACSD/lqe/dlqea.c b/src/c/CACSD/lqe/dlqea.c
index bc729fb..63f8d62 100644
--- a/src/c/CACSD/lqe/dlqea.c
+++ b/src/c/CACSD/lqe/dlqea.c
@@ -12,6 +12,7 @@
/*Function for calculating lqe gain. Refer 'lqe.sci' in scilab source.*/
+#include <stdlib.h>
#include "lqr.h"
#include "matrixTranspose.h"
@@ -24,8 +25,8 @@ void dlqea(double* sys, int sys_rows, int sys_cols, double* X, double* K)
int sys_lqr_cols = sys_rows + 2;
int no_of_ip, no_of_st;
- no_of_ip = sys[sys_rows*(sys_cols-1)+1];
- no_of_st = sys[sys_rows*(sys_cols-1)];
+ no_of_ip = (int)sys[sys_rows*(sys_cols-1)+1];
+ no_of_st = (int)sys[sys_rows*(sys_cols-1)];
/*Transpose given system and calculate LQR with new system. Transpose result
got from LQR*/