Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: fonction.c
- Revision:
- 0:8bb6839e4133
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/fonction.c Thu Mar 19 07:31:08 2020 +0000
@@ -0,0 +1,21 @@
+#include "fonction.h"
+
+// Calcul de l'état à l'instant t+dt
+
+void sortiex(int posx,int accx){
+ posx=posx+accx*TMP*TMP;
+}
+
+void sortiey(int posy,int accy){
+ posy=posy+accy*TMP*TMP;
+}
+
+void listex(int* matx,int entreex,int rang){
+ int* p=matx+rang+1;
+ *p=entreex;
+}
+
+void listey(int* maty,int entreey,int rang){
+ int* p=maty+rang+1;
+ *p=entreey;
+}
\ No newline at end of file