premiere ebauche

Dependencies:   mbed PinDetect

recommendedspeed.hpp

Committer:
shovelcat
Date:
2018-11-16
Revision:
10:f0b382368614

File content as of revision 10:f0b382368614:

#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