premiere ebauche

Dependencies:   mbed PinDetect

recommendedspeed.hpp

Committer:
LipSer
Date:
2018-12-17
Revision:
15:e9560502e463
Parent:
10:f0b382368614

File content as of revision 15:e9560502e463:

#ifndef RECOMMENDEDSPEED_HPP
#define RECOMMENDEDSPEED_HPP

#include <vector>

class Segment : public std::vector<float>
{
    public:
        Segment(std::vector<float> vals);
        
        float getSpeed();
        void incrementIndex();
    
    protected:
        int currentIndex;
};

class Parcours : public std::vector<Segment>
{
    public:
        Parcours();
        
        Segment& getSegment();
        void incrementIndex();
    
    protected:
        int currentSegmentIndex;
};

#endif