ACC TEAM / Mbed 2 deprecated ACCPROJECT

Dependencies:   mbed

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