Quadrifoglio / Mbed OS 00_yotsuba

Dependencies:   sensorGen Robot omni_wheel PID jy901 solenoid aqm0802 camera beep kohiMD linesSnsor lpf RCJESC

sensorGen/sensorGen.h

Committer:
THtakahiro702286
Date:
2020-01-30
Revision:
10:eeb993f00a55
Parent:
9:63d7e7f07536

File content as of revision 10:eeb993f00a55:

#ifndef SENSORGEN_H
#define SENSORGEN_H

#include "mbed.h"
#include "camera.h"
#include "line.h"
#include "jy901.h"
#include "pin_config.h"

class sensor{
public :
    sensor();
       
    void sensorloop();
       
//    float jy901();
       
//    float hcsr04();
       
//    float camera();
    
    bool line[6];
    float angle;
    float angleLimit;
    float ballAngle;
    float ballRange;
    bool ballKeep;
    float blueAngle;
    float blueRange;
    float yellowAngle;
    float yellowRange;
private:
    Thread thread;
    Line *_line[6];
    Cam camera;
    JY901 jy;
//    DigitalIn limit;
    
    int angleCount;
    int ballx,bally,bluex,bluey,yellowx,yellowy;
    float tempAngle,rawAngle;
};

#endif