Giter Club home page Giter Club logo

ttgo_t_beam's Introduction

Hi 👋, I'm khancyr

A passionate open source robotics developer from France

Khancyr's GitHub stats

khancyr

trophy

Most used Languages and Tools :

arduino bash cplusplus docker git linux python travisci vagrant

Top Langs

Support:

Github Sponsor

Linkedin: khancyr

ttgo_t_beam's People

Contributors

khancyr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ttgo_t_beam's Issues

Mesure de distance entre 2 points instable : beacon envoyé sans raison

Bonjour,

j'ai réalisé votre exemple sur une carte Lolin32 Lite avec un module GPS NEO6-M externe et tout semble fonctionner correctement excepté que des beacons sont envoyés sporadiquement car la distance parcourue est reportée comme > 30m (mon montage est immobile dans le jardin).

J'ai inspecté le code et je vois un problème, comme _travelled_distance est signé, il faudrait faire la comparaison sur la valeur absolue:

bool has_pass_distance() const {
    return (abs(_travelled_distance) >= FRAME_DISTANCE_LIMIT);
}

Mais ce n'et pas le seul apparemment, avec une instrumentation de votre code

void set_lat_lon(double lat, double lon) {
    char buffer[80];
    _old_latitude = _latitude;
    _old_longitude = _longitude;
    _latitude = lat * 1e5;
    _longitude = lon * 1e5;

    _travelled_distance = distanceBetween(_latitude, _longitude, _old_latitude, _old_longitude);
    if (_travelled_distance != 0) {
        sprintf(buffer, "DIST : %8d", _travelled_distance);
        Serial.println(buffer);
        sprintf(buffer, "Old LAT: %8d", _old_latitude);
        Serial.println(buffer);
        sprintf(buffer, "LAT : %8d", _latitude);
        Serial.println(buffer);
        sprintf(buffer, "Old LNG: %8d", _old_longitude);
        Serial.println(buffer);
        sprintf(buffer, "LNG : %8d", _longitude);
        Serial.println(buffer);
    }
}

Voilà ce que j'obtiens à la console série:

Setting Home Position
........

plus tard
DIST : 74424 m
Old LAT: 4884308
LAT : 4884308
Old LNG: 199616
LNG : 199617

Send beacon

.......

DIST : 111226m
Old LAT: 4884308
LAT : 4884309
Old LNG: 199617
LNG : 199617

Send beacon

Le dernier digit des latitudes et/ou longitude fluctue de +/-1, pas surprenant, mais la distance correspondante reportée est fausse (plusieurs km)?

Enfin, votre code enregistre (dans _old_longitude et _old_latitude a chaque appel de la méthode set_lat_lon) la longitude/latitude à chaque trame GPS reçue, hors il me semble que le texte de loi demande à ce qu'un beacon soit émis si la distance parcourue depuis l'envoi du précédant beacon émis est supérieure à 30m, donc on devrait mémoriser _old_longitude et _old_latitude à chaque envoi de beacon et non pas chaque trame GPS.

Merci encore pour votre travail.
Bien cordialement,
Patrick

erreur avec button2

Bonjour,
je suis novice et j'ai tenté la compilation après avoir intégré les bibliothèques et j'obtiens cette erreur :

LilyGO-T-Beam.ino: In function 'void button_init()':
LilyGO-T-Beam:131:32: error: no matching function for call to 'Button2::Button2()'
pBtns = new Button2 [args];
^
In file included from C:\Users\sebas\Documents\Arduino\droneID_FR\LilyGO-T-Beam\LilyGO-T-Beam.ino:18:0:
C:\Users\sebas\Documents\Arduino\libraries\Button2-1.2.0\src/Button2.h:63:5: note: candidate: Button2::Button2(byte, byte, boolean, unsigned int)
Button2(byte attachTo, byte buttonMode = INPUT_PULLUP, boolean activeLow = true, unsigned int debounceTimeout = DEBOUNCE_MS);
^
C:\Users\sebas\Documents\Arduino\libraries\Button2-1.2.0\src/Button2.h:63:5: note: candidate expects 4 arguments, 0 provided
C:\Users\sebas\Documents\Arduino\libraries\Button2-1.2.0\src/Button2.h:35:7: note: candidate: constexpr Button2::Button2(const Button2&)
class Button2 {
^
C:\Users\sebas\Documents\Arduino\libraries\Button2-1.2.0\src/Button2.h:35:7: note: candidate expects 1 argument, 0 provided
C:\Users\sebas\Documents\Arduino\libraries\Button2-1.2.0\src/Button2.h:35:7: note: candidate: constexpr Button2::Button2(Button2&&)
C:\Users\sebas\Documents\Arduino\libraries\Button2-1.2.0\src/Button2.h:35:7: note: candidate expects 1 argument, 0 provided
Plusieurs bibliothèque trouvées pour "WiFi.h"
Utilisé : C:\Users\sebas\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Non utilisé : C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.39.0_x86__mdqgnx93n4wtt\libraries\WiFi
exit status 1
no matching function for call to 'Button2::Button2()'

ESP01-C3 upload error

Bonjour,

Déjà,merci pour votre partage.
J'essaie de programmer un ESP01-C3 avec un module FTDI, sans succès.
J'ai d'abord essayé l'IDE Arduino puis platformio.
La compilation se passe bien mais la connexion avec l'ESP01-C3 ne se fait pas.
J'ai câblé mon esp01-c3 ainsi.

ESP8266blinkSketch1

Merci pour votre aide,,
Pierre

GPS signal is not fixed?

hi guys...

well, I do have the problem, that GPS signal isn't fixed. So in summery also after about 15 min I only receive the Positioining print in serial monitor like "Positioning(1051)".

I do have a TTGO T-Beam V1.1 ESP32 868/915 WLAN-WLAN-Modul GPS NEO-6M ... Does anyone have some idea where my mistake could be?!

best stefan

SSD1306

Bonjour j'ai vu dans le code que l'on pouvait ajouter un module OLE SSD1306.
Quand je decommente la ligne (fichier Board_def.h Ligne 7) et je compile je rencontre un message d'erreur :
In file included from D:\Mes Documents\Drone\TTGO_T_BEAM_OLED\LilyGO-T-Beam_oled\LilyGO-T-Beam_oled.ino:16:0:
board_def.h:16:38: error: expected ')' before 'oled'
#define SSD1306_OBJECT() (SSD1306 oled(SSD1306_ADDRESS, I2C_SDA, I2C_SCL);OLEDDisplayUi ui(&oled))
^
D:\Mes Documents\Drone\TTGO_T_BEAM_OLED\LilyGO-T-Beam_oled\LilyGO-T-Beam_oled.ino:33:1: note: in expansion of macro 'SSD1306_OBJECT'
SSD1306_OBJECT();
^
board_def.h:16:96: error: 'oled' was not declared in this scope
#define SSD1306_OBJECT() (SSD1306 oled(SSD1306_ADDRESS, I2C_SDA, I2C_SCL);OLEDDisplayUi ui(&oled))
^
D:\Mes Documents\Drone\TTGO_T_BEAM_OLED\LilyGO-T-Beam_oled\LilyGO-T-Beam_oled.ino:33:1: note: in expansion of macro 'SSD1306_OBJECT'
SSD1306_OBJECT();
^
board_def.h:16:101: error: expected ',' or ';' before ')' token
#define SSD1306_OBJECT() (SSD1306 oled(SSD1306_ADDRESS, I2C_SDA, I2C_SCL);OLEDDisplayUi ui(&oled))
^
D:\Mes Documents\Drone\TTGO_T_BEAM_OLED\LilyGO-T-Beam_oled\LilyGO-T-Beam_oled.ino:33:1: note: in expansion of macro 'SSD1306_OBJECT'
SSD1306_OBJECT();
^
D:\Mes Documents\Drone\TTGO_T_BEAM_OLED\LilyGO-T-Beam_oled\LilyGO-T-Beam_oled.ino: In lambda function:
LilyGO-T-Beam_oled:141:13: error: 'oled' was not declared in this scope
oled.displayOff();
^
D:\Mes Documents\Drone\TTGO_T_BEAM_OLED\LilyGO-T-Beam_oled\LilyGO-T-Beam_oled.ino: In function 'void ssd1306_init()':
LilyGO-T-Beam_oled:239:9: error: 'oled' was not declared in this scope
if (oled.init()) {
^
LilyGO-T-Beam_oled:252:18: error: 'frames' was not declared in this scope
ui.setFrames(frames, ARRARY_SIZE(frames));
^
LilyGO-T-Beam_oled:254:24: error: 'overlays' was not declared in this scope
ui.setOverlays(overlays, ARRARY_SIZE(overlays));
^
D:\Mes Documents\Drone\TTGO_T_BEAM_OLED\LilyGO-T-Beam_oled\LilyGO-T-Beam_oled.ino: In function 'void loop()':
LilyGO-T-Beam_oled:608:1: error: expected '}' at end of input
}
^
Plusieurs bibliothèque trouvées pour "WiFi.h"
Utilisé : C:\Users\gael_\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\WiFi
Non utilisé : C:\Program Files (x86)\Arduino\libraries\WiFi
Plusieurs bibliothèque trouvées pour "Ticker.h"
Utilisé : C:\Users\gael_\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\Ticker
Non utilisé : D:\Mes Documents\Arduino\libraries\Ticker-master
exit status 1
expected ')' before 'oled'

Si une personne est arriver ce probleme?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.