jvoermans / Wind_Input_V1

Sketch for measuring pressure and IMU using Platformio
0 stars 0 forks source link

ready to test: start, and then wakeup on a schedule #13

Closed jerabaul29 closed 1 year ago

jerabaul29 commented 1 year ago

@jvoermans there should now be the following functionalities implemented on my branch: https://github.com/jvoermans/Wind_Input_V1/tree/logger_version_jr

Could you test this on the actual hardware? :) Let us discuss here if you have any questions / problems. There should be some serial output on the serial over USB monitored by platformio :) .

jvoermans commented 1 year ago

@jerabaul29 Tried to upload, but get the following error:

lib\time_manager\time_manager.cpp: In member function 'void TimeManager::print_status() const':
lib\time_manager\time_manager.cpp:100:44: error: call of overloaded 'print(kiss_time_t)' is ambiguous
  100 |     SERIAL_USB->print(get_posix_timestamp());
      |                                            ^
In file included from C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup\ard_supers/Stream.h:26,
                 from C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup\ard_supers/HardwareSerial.h:27,
                 from C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup/ap3_uart.h:29,
                 from C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup/Arduino.h:80,
                 from <command-line>:
C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup\ard_supers/Print.h:67:12: note: candidate: 'size_t Print::print(char)'
   67 |     size_t print(char);
      |            ^~~~~
C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup\ard_supers/Print.h:68:12: note: candidate: 'size_t Print::print(unsigned char, int)'
   68 |     size_t print(unsigned char, int = DEC);
      |            ^~~~~
C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup\ard_supers/Print.h:69:12: note: candidate: 'size_t Print::print(int, int)'
   69 |     size_t print(int, int = DEC);
      |            ^~~~~
C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup\ard_supers/Print.h:70:12: note: candidate: 'size_t Print::print(unsigned int, int)'
   70 |     size_t print(unsigned int, int = DEC);
      |            ^~~~~
C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup\ard_supers/Print.h:71:12: note: candidate: 'size_t Print::print(long int, int)'
   71 |     size_t print(long, int = DEC);
      |            ^~~~~
C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup\ard_supers/Print.h:72:12: note: candidate: 'size_t Print::print(long unsigned int, int)'
   72 |     size_t print(unsigned long, int = DEC);
      |            ^~~~~
C:\Users\jvoermans\.platformio\packages\framework-arduinoapollo3@1.2.3\cores\arduino\ard_sup\ard_supers/Print.h:73:12: note: candidate: 'size_t Print::print(double, int)'
   73 |     size_t print(double, int = 2);
      |            ^~~~~
*** [.pio\build\SparkFun_RedBoard_Artemis\lib1ef\time_manager\time_manager.cpp.o] Error 1

Anything I'm doing wrong?

jerabaul29 commented 1 year ago

Mmmh, interesting, I do not get the issue on my side, things compile just fine. Just to double check:

nothing to commit, working tree clean ~/Desktop/Git/Wind_Input_V1 [logger_version_jr|✔]> git log commit d052358372125d36afe2608ac0eb4e59ba0c6a3d (HEAD -> logger_version_jr, origin/logger_version_jr) Author: JR jerabaul29@users.noreply.github.com Date: Tue Jan 10 09:25:38 2023 +0100

Update README.md

commit 72241909d48b6d9b37079e1cc519cc8b44e9e98e Author: JRT jean.rblt@gmail.com Date: Wed Jan 4 16:54:09 2023 +0100

wip
- are you well using all the submodules in the latest version? To double check this, you could do:

git submodule init git submodule update



If the problem still persists I can try finding a fix, that may be some weirdness / difference between your and my compiler. Quite surprising.
jerabaul29 commented 1 year ago

(if you cannot get it to compile, let me know, and we should plan for a short meeting; we will need to be able to iterate / test quite a bit to get everything to work I think given that you have the hardware but I do not, a bit like last time :) ).

jvoermans commented 1 year ago

Ok all good now. It compiles after 'git submodule update'

I think the problem was the kiss_clang_posix_time_utils library. After switching to your branch the library folder was empty of that one, so had to add it from your repository

Submodule update did the following now:

git submodule update
Submodule path 'lib/kiss_clang_posix_time_utils': checked out 'b30dd26b61802d67b46fe40d6705076bcc0e1ebe'

Not sure why though, all the files were in the library...

jerabaul29 commented 1 year ago

Yeah there is a bit of dark magics with git submodules, it requires some extra command to pull the changes put them in the right version etc, this is a classic :) . May be a good thing to keep in mind / try first in the future if having issues :) .

Excellent, closing as it compiles :) .