This commit is contained in:
Clement 2024-01-18 19:32:02 +01:00
parent d8f0bb07be
commit b96088c4eb
2 changed files with 11 additions and 17 deletions

View File

@ -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

View File

@ -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