Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
projetS6_Groupe4
4projetCordesVocales
Commits
01f60f41
Commit
01f60f41
authored
Mar 19, 2021
by
Alexandre De Fonvillars
Browse files
Update u4-fonctions.cpp
parent
0e30c1d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
u4-fonctions.cpp
u4-fonctions.cpp
+2
-2
No files found.
u4-fonctions.cpp
View file @
01f60f41
...
...
@@ -344,12 +344,12 @@ double calculPsub()
else
if
(
gDonnees
.
t
<
t_nul
+
t_rise
&&
gDonnees
.
t
>
t_nul
)
// Modif par rapport au matlab
{
P_sub
=
-
P_submax
*
(
gDonnees
.
t
-
t_nul
)
*
(
gDonnees
.
t
-
t_nul
)
/
(
pow
(
t_rise
,
3
))
*
(
2
*
(
gDonnees
.
t
-
t_nul
)
-
3
*
(
t_rise
));
P_sub
=
-
gDonnees
.
Psub
*
(
gDonnees
.
t
-
t_nul
)
*
(
gDonnees
.
t
-
t_nul
)
/
(
pow
(
t_rise
,
3
))
*
(
2
*
(
gDonnees
.
t
-
t_nul
)
-
3
*
(
t_rise
));
}
else
if
(
gDonnees
.
t
>=
(
t_nul
+
t_rise
))
// Modif par rapport au matlab
{
P_sub
=
P_submax
;
P_sub
=
gDonnees
.
Psub
;
}
// else if(t<t_max && t>=(t_max -t_down)) // Voir matlab mais condition qui semble inutile car n'arrive jamais
else
// Pas utile apparemment
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment