TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

sm_sections.cpp

Committer:
GaspardD
Date:
2019-09-29
Revision:
3:1b7eb426247e
Child:
4:efa207509f63

File content as of revision 3:1b7eb426247e:

#include "sm_sections.h"

s_Section* currentSection;

s_Section section1;
s_Section section2;


void init_sm_sections(){

 //section de départ
    section1.nextSection = &section2;
    section1.consigne_position = 0.75;
    section1.targetSpeed_mps = 1.0;
    section1.lng_section_m = 1.0;
    section1.coef_p = 1.0;
    section1.coef_d = 0.0;
    section1.coef_i = 0.000;

    //epingle 1
    section2.nextSection = NULL;
    section2.consigne_position = 0.75;
    section2.targetSpeed_mps = 1.0;
    section2.lng_section_m = 1.0;
    section2.coef_p = 1.0;
    section2.coef_d = 0.0;
    section2.coef_i = 0.000;

    return;
}
void update_sm_sections(){
    return;
}
void output_sm_sections(){
    return;
}