And we haven't even read any magnetic data, nor calculated a compass direction (which will happen in part 3). I really thought that the whole thing will be done in 2 or 3 parts, but I'm currently planning for 4 to 5 parts. These digital compasses are beasts.
@andymouse
2 жыл бұрын
@@robertssmorgasbord Indeed they are and Sunday's wouldn't be the same without your 'deep dives' !...cheers.
@robertssmorgasbord
2 жыл бұрын
@@andymouse Thanks! Your support is really cheering me up 😀
@resiggy13
2 жыл бұрын
Really nice series - thank you!
@robertssmorgasbord
2 жыл бұрын
You're very welcome 😀
@peterdlynes
9 ай бұрын
Thank you Robert.
@robertssmorgasbord
9 ай бұрын
You're welcome!
@electronic7979
2 жыл бұрын
👍
@robertssmorgasbord
2 жыл бұрын
😃
@David_11111
2 жыл бұрын
yay
@robertssmorgasbord
2 жыл бұрын
😁
@AdilKhan-jp7hn
5 ай бұрын
I am getting an error for QMC5883l_v8 file "Compilation error: 'boolean' does not name a type; did you mean 'bool'?" Not sure why?
@robertssmorgasbord
5 ай бұрын
The type "bool" is the offical C++ type for booleans. The Arduino IDE adds the alias "boolean" for it. However, meanwhile Arduino discourages its use ( www.arduino.cc/reference/en/language/variables/data-types/boolean/ ). If I remember right it helps sometimes to explicitly include "Arduino.h". Or, just replace all "boolean" in the code by "bool".
@morgendavid
2 жыл бұрын
that's seems really nice. but got problem with. seems missing something. i can't compile... i got 'boolean' does not name a type; did you mean 'bool'? even if i add "arduino.h" i fail into some more errors... need some help..
@robertssmorgasbord
2 жыл бұрын
Already answered in the comment section of part 2, but here it is again: That's curious! I'm assuming you're using the Arduino IDE since you're including "arduino.h". "boolean" is an Arduino IDE data type and doesn't require to include "arduino.h" ( www.arduino.cc/reference/en/language/variables/data-types/boolean/ ). "bool" is the standard c++ datatype and should work in any IDE. Which Arduino IDE version are you using (I'm using 1.8.19)? You could try to replace all "boolean" by "bool", but as mentioned that shouldn't be necessary.
@ozil3131
6 ай бұрын
QMC5883L::QMC5883L(TwoWire* wire, byte default_address) : wire(wire), device_address(default_address) { } 'byte' has not been declared
@robertssmorgasbord
5 ай бұрын
What IDE/complier are you using? "byte" is a type defined within the Arduino IDE. If you want to stay within the C++ standard use "unsigned char" or "uint8_t" instead (should work with any C++ compiler). Or simply put a "typedef uint8_t byte;" at the top of the .h file.
Пікірлер: 18