PID library from Ahmed Lazreg and Dany Rosseel

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
octal
Posts: 534
Joined: 09 Feb 2005 14:15
Location: France
Contact:

Re: PID library from Ahmed Lazreg and Daniel Rosseel

#3 Post by octal » 15 Oct 2011 16:54

Hi Bonca, Hi Dany(iel :mrgreen:)

@Bonca,
the Result variable is automatically defined by the mikroBasic and mikroPascal compilers. Its type is the return type of the function and it contains the result of the function.
In C language, you don't have it, as C functions return their result using the keyword "return (...)".

As for the PID_Lib, I already does the C version but never posted it. In fact I does it the same time I does Basic one, but never got time to test it.

Here it is. Dany can add it to the Libstock.

@Dany
this is the port of the first version you does, it's equivalent to the mikroBasic version I posted. I'll take time by the start of this week to download your last version and to update both Basic and C versions.

to use this "C" version, just include the header file in your program and dont forgot to add both files (*.c and *.h) to your project.

Best regards
Ahmed Lazreg
Attachments
PIDLib_C.zip
(1.51 KiB) Downloaded 750 times
http://www.pocketmt.com

Bonca
Posts: 319
Joined: 18 Mar 2009 07:55

Re: PID library from Ahmed Lazreg and Dany Rosseel

#4 Post by Bonca » 15 Oct 2011 20:43

Dany
Sorry for mis-writing your name, I have fixed it.

octal
Thank you for explaining and sharing the C source. I hope, everyone will be satisfied who has been looking for it.

Bonca

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re: PID library from Ahmed Lazreg and Daniel Rosseel

#5 Post by Dany » 17 Oct 2011 10:58

octal wrote:As for the PID_Lib, I already does the C version but never posted it. In fact I does it the same time I does Basic one, but never got time to test it.
Here it is. Dany can add it to the Libstock.
Best regards
Ahmed Lazreg
Done, see http://www.libstock.com/projects/view/161/pid-library. :-)
Thanks Octal!
Bonca wrote:Dany
Sorry for mis-writing your name, I have fixed it.
Bonca
No problem, more people do that, thanks for the correction. :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Post Reply

Return to “mikroC PRO for PIC General”