TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

Committer:
GaspardD
Date:
Sun Sep 29 00:43:58 2019 +0000
Revision:
3:1b7eb426247e
Child:
4:efa207509f63
init esc nouveau chassis ok

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GaspardD 3:1b7eb426247e 1 #include "sm_sections.h"
GaspardD 3:1b7eb426247e 2
GaspardD 3:1b7eb426247e 3 s_Section* currentSection;
GaspardD 3:1b7eb426247e 4
GaspardD 3:1b7eb426247e 5 s_Section section1;
GaspardD 3:1b7eb426247e 6 s_Section section2;
GaspardD 3:1b7eb426247e 7
GaspardD 3:1b7eb426247e 8
GaspardD 3:1b7eb426247e 9 void init_sm_sections(){
GaspardD 3:1b7eb426247e 10
GaspardD 3:1b7eb426247e 11 //section de départ
GaspardD 3:1b7eb426247e 12 section1.nextSection = &section2;
GaspardD 3:1b7eb426247e 13 section1.consigne_position = 0.75;
GaspardD 3:1b7eb426247e 14 section1.targetSpeed_mps = 1.0;
GaspardD 3:1b7eb426247e 15 section1.lng_section_m = 1.0;
GaspardD 3:1b7eb426247e 16 section1.coef_p = 1.0;
GaspardD 3:1b7eb426247e 17 section1.coef_d = 0.0;
GaspardD 3:1b7eb426247e 18 section1.coef_i = 0.000;
GaspardD 3:1b7eb426247e 19
GaspardD 3:1b7eb426247e 20 //epingle 1
GaspardD 3:1b7eb426247e 21 section2.nextSection = NULL;
GaspardD 3:1b7eb426247e 22 section2.consigne_position = 0.75;
GaspardD 3:1b7eb426247e 23 section2.targetSpeed_mps = 1.0;
GaspardD 3:1b7eb426247e 24 section2.lng_section_m = 1.0;
GaspardD 3:1b7eb426247e 25 section2.coef_p = 1.0;
GaspardD 3:1b7eb426247e 26 section2.coef_d = 0.0;
GaspardD 3:1b7eb426247e 27 section2.coef_i = 0.000;
GaspardD 3:1b7eb426247e 28
GaspardD 3:1b7eb426247e 29 return;
GaspardD 3:1b7eb426247e 30 }
GaspardD 3:1b7eb426247e 31 void update_sm_sections(){
GaspardD 3:1b7eb426247e 32 return;
GaspardD 3:1b7eb426247e 33 }
GaspardD 3:1b7eb426247e 34 void output_sm_sections(){
GaspardD 3:1b7eb426247e 35 return;
GaspardD 3:1b7eb426247e 36 }