-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingimprovementimprovement the listing or algorithmimprovement the listing or algorithminvalidThis doesn't seem rightThis doesn't seem rightquestionFurther information is requestedFurther information is requestedspecificationcompliance with the specifications (customer's requests)compliance with the specifications (customer's requests)wontfixThis will not be worked onThis will not be worked on
Description
- => question => variable => local VS globale => visibilité => comme fonctionne la visibilité d'une variable globale -> fonction -> fichier -> plusieurs fichiers ?
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L22C1-L23C50 - => amélioration / question => variable => globale =>
PWMData=> à quoi elle vous sert ?
S_pwmSettings PWMData; // pour les settings
=> FCT : GPWM_Initialize <=
- => bug => structure => initialisation des champs => pourquoi initialisez-vous que 3 champs sur 4 =>
int8_t AngleSetting; // consigne angle -90 à +90
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L41C1-L43C52
=> FCT : GPWM_GetSettings <=
- => bug => librairie => types => quelle librairie est associée aux types suivants :
uint16_t,uint8_t?
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L78C1-L85C92 - => amélioration / question => type =>
uint16_t=> plage de valeurs ? - => amélioration / question => variable =>
indexMoyenneGlissante=> valeurs max ?
static uint16_t indexMoyenneGlissante = 0; // Indice pour suivre la position dans les tableaux de moyenne glissante - => bug => librairie => appel de fonction => BSP_ReadAllADC => quelle librairie est associé à cet appel de fonction ?
- => amélioration / question => variable =>
appData=> comment est perçu cette variable dans la fct ? est-ce une bonne pratique ?
appData.AdcRes = BSP_ReadAllADC();
=> bug => librairie => appel de fonction =>abs=> quelle librairie est associé à cet appel de fonction ?
pData->absSpeed = abs(pData->SpeedSetting); - => question=> structure => champs =>
SpeedSetting=> quelle est la plage de valeur que vous vous attendez pour cette variable ?
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L115C8-L115C21 - => question=> structure => champs =>
absAngle=> quelle est la plage de valeur que vous vous attendez pour cette variable ?
pData->absAngle = ((ADC1_Angle_M * moyenne2) / ADC_RES); - => question=> structure => champs =>
AngleSetting=> quelle est la plage de valeur que vous vous attendez pour cette variable ?
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L124C8-L124C20
=> FCT : GPWM_DispSettings <=
- => question / amélioration => gestion LCD => appel de fonction =>
printf_lcd()=> une fois cet appel de fct exécuté, comment se comporte l'affichage ? est-ce que l'information est gradée en mémoire si vous écrivez sur une autre ligne ? - => question / amélioration => gestion LCD => appel de fonction =>
printf_lcd()=> est-ce que certains appel de fct peuvent-il être appelé qu'une seule fois ?
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L145C1-L146C91 - => question => gestion LCD => appel de fct =>
printf_lcd()=> opérateur de conversion =>%xd=> que représente le x ? que se passe-t-il si la valeur à affiché est plus grande que x et même question si plus petite ? - => question / amélioration => gestion LCD => appel de fct =>
printf_lcd()=> opérateur de conversion =>%xd=> comment pourriez-vous gérer les signes : + et - ?
printf_lcd("%3d",pData->SpeedSetting); // Affiche la vitesse négative
printf_lcd("%2d",pData->SpeedSetting); // Affiche la vitesse positive
printf_lcd("%2d",pData->absSpeed); // Affiche la vitesse absolue
printf_lcd("%4d",pData->AngleSetting); // Affiche la valeur de l'angle avec un format de 4 chiffres
=> FCT : GPWM_ExecPWM <=
- => amélioration / question => type =>
int=> plage de valeurs ? Est-ce que le type est utilisée est judicieux ?
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L187C1-L188C32 - => amélioration / question => test / condition => algorithme => vous mettez 3 conditions de test (OK), mais qu'elle serait la 4ème (
else) ?
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L192C1-L211C6 - => documentation / amélioration => variable =>
PulseWidthAngle; PulseWidthVitesse => plage de valeur ?
PulseWidthAngle = ((pData->absAngle * PLAGE_OC3 ) / PLAGE_ANGLE_MAX ) + OFFSET_OC3 ;
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L219C5-L219C23 - => amélioration / question => appel de fct =>
DRV_TMR1_PeriodValueGet=> paramètre de sortie => quelle valeur vous ressort cette fct ? - => amélioration / question => constante numérique => hardcodage => que représente ce
99?
https://github.com/NicolasBessson/TP1_TimerPWM/blob/f652cdede10ab833ab73bbc1231be5fe7df48c46/TP1_TimerPWM/firmware/src/gestPWM.c#L219C5-L219C23
=> FCT : GPWM_ExecPWMSoft <=
- => bug => librairie => types => quelle librairie est associée aux types suivants :
uint8_t?
static uint8_t compteur = 0; - [ ]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingimprovementimprovement the listing or algorithmimprovement the listing or algorithminvalidThis doesn't seem rightThis doesn't seem rightquestionFurther information is requestedFurther information is requestedspecificationcompliance with the specifications (customer's requests)compliance with the specifications (customer's requests)wontfixThis will not be worked onThis will not be worked on