feat: main-algo #16
@ -5,7 +5,7 @@
|
||||
#include "GRBL.h"
|
||||
#include <Arduino.h>
|
||||
#include <M5Stack.h>
|
||||
#include <vector>
|
||||
// #include <vector>
|
||||
|
||||
class Program {
|
||||
public:
|
||||
@ -27,12 +27,6 @@ private:
|
||||
* @brief stepper motor controller
|
||||
*/
|
||||
GRBL* grbl;
|
||||
|
||||
/**
|
||||
* @brief stack des UUID lue
|
||||
*
|
||||
*/
|
||||
std::vector<String>* NfcIDs;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -29,17 +29,17 @@ Program::Program() {
|
||||
}
|
||||
|
||||
void Program::loop() {
|
||||
if(this->grbl->)
|
||||
this->grbl->mouveForward(5); //TODO: réglé pour qu'il avance de la bonne distance
|
||||
String nfcIn = "0"; // TODO: si le lecteur envoie qqc
|
||||
//TODO: refrech servo
|
||||
if(nfcIn !="0"){
|
||||
//envoyer sur dolibard
|
||||
this->NfcIDs->push_back(nfcIn);
|
||||
}
|
||||
if(this->NfcIDs->size() > 0){
|
||||
// if(this->grbl->)
|
||||
// this->grbl->mouveForward(5); //TODO: réglé pour qu'il avance de la bonne distance
|
||||
// String nfcIn = "0"; // TODO: si le lecteur envoie qqc
|
||||
// //TODO: refrech servo
|
||||
// if(nfcIn !="0"){
|
||||
// //envoyer sur dolibard
|
||||
// this->NfcIDs->push_back(nfcIn);
|
||||
// }
|
||||
// if(this->NfcIDs->size() > 0){
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
//alog V1
|
||||
//je lis la valeur NFC
|
||||
|
Loading…
x
Reference in New Issue
Block a user