Closed PBYetml closed 1 year ago
voir commentaire dans la réponse : https://github.com/PBYetml/PROG_SLO1_C_PRJ2/issues/9#issuecomment-1520409399
voici la fonction faite et (juste): https://github.com/PBYetml/PROG_SLO1_C_PRJ2/blob/6485ee806598f9165cefec5cd38097a659d60fc4/NEG/PROJET1_S1_ELGHANDOUR/PROJET1_S1_ELGHANDOUR/fonctionsPontDiv.c#L75
réponse du point: https://github.com/PBYetml/PROG_SLO1_C_PRJ2/blob/6485ee806598f9165cefec5cd38097a659d60fc4/NEG/PROJET1_S1_ELGHANDOUR/PROJET1_S1_ELGHANDOUR/fonctionsPontDiv.c#L85
réponse du point: https://github.com/PBYetml/PROG_SLO1_C_PRJ2/blob/6485ee806598f9165cefec5cd38097a659d60fc4/NEG/PROJET1_S1_ELGHANDOUR/PROJET1_S1_ELGHANDOUR/fonctionsPontDiv.c#L91
un autre algorithme (merci de l'aide de Cyril) pour calculer entre les résistances: https://github.com/PBYetml/PROG_SLO1_C_PRJ2/blob/6485ee806598f9165cefec5cd38097a659d60fc4/NEG/PROJET1_S1_ELGHANDOUR/PROJET1_S1_ELGHANDOUR/fonctionsPontDiv.c#L91
en relation avec votre réponse : https://github.com/PBYetml/PROG_SLO1_C_PRJ2/issues/29#issuecomment-1520754020
for (i = 0; i < demoPonDiv->nbResComposantPonRes; i++) { restotal = restotal + demoPonDiv->tbValRes[i]; }
et 4. for (i = 0; i < demoPonDiv->nbResComposantPonRes; i++) { demoPonDiv->tbValTensionRes[i] = (demoPonDiv->tensionAlimPontRes * demoPonDiv->tbValRes[i]) / restotal; } for (i = 0; i < demoPonDiv->nbResComposantPonRes; i++) { ValTensionResTot = ValTensionResTot + demoPonDiv->tbValTensionRes[i]; demoPonDiv->ValTensionEntreRes[i] = demoPonDiv->tensionAlimPontRes - ValTensionResTot; }
OKI => issue fermée
voici un listing des points à améliorer/corriger dans le fichier
fonctionPontDiv.c
=> voir fichier vidéo lien vidéo