Hi,
I would like to convert my matlab code to C/C++. I've got some problems.
1. In my matlab code, I have some differential/integral equations implemented by numerical math (e.g. euler method), so sampling time is specified easily. How can I convert these equations into C/C++ on Linux ? I do not know the sampling time and it has to work realtime.
2. My work is to track a given trajectory, for example, I can give: x = cos(t) y = sin(t), t is time. So I can get point (x,y) at each time step. When I convert to C/C++ using time from Linux system, I cannot get the correct points on the trajectory.
Also, in each loop in my program, there are some if/else conditions. The time taken in each case is not constant.
I know someone can solve these problems easily. It happens all the time when we have to implement something in realtime systems.
Could anyone please give me some suggestions?
Thank you in advance.
Kank


LinkBack URL
About LinkBacks




Reply With Quote



Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum