C and Cpp

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsDesktop ProgrammingC and Cpp

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old March 25th, 2009, 07:02 PM
rajaaladin rajaaladin is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Posts: 1 rajaaladin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 24 sec
Reputation Power: 0
Pseudo code

I always work with C++ but in my project i have to programme in Mplab with c language can someone transform the pseudo code i made in C language :

seudo code du programme

//Initialisation des variables :

Vmes = Lecture du buffer de conversion analogique-numérique*facteur de correction (~60)
Imes = Lecture du buffer de conversion analogique-numérique*facteur de correction à déterminer
Vref = 300
Verr = 0
Vreg = 0
e = 0
Iref = 0
x0 = 0
x1 = 0
A = 0.9998
B = 2
C = -2.118*10^-5
D = -2.118*10^-5

À l'instant 0+:
Verr = Vref-Vmes
e = Verr-Vreg

//Vérification de la saturation

Si e*5.82> 350
Iref = 350
Sinon Si e*50 < -350
Iref = -350
Sinon
Iref = e*5.82

//Boucle de régulation par variable d'état
x0 = Iref*B+x1*A
Vreg = x1*C+Iref*D
x1 = x0


thanks

Reply With Quote
Reply

Viewing: Tutorialized ForumsDesktop ProgrammingC and Cpp > Pseudo code


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap