MiCom compilation errors

Fredrik,

Using the new prop file in the repo for micom is causing a lot of errors on compilation.

Arduino: 1.8.9 (Windows 10), TD: 1.53, Board: “Teensy 4.0, Serial, 600 MHz, Faster, US English”

In file included from C:\Users\tomti\AppData\Local\Temp\arduino_build_331882\sketch\config/micom2_config.h:14:0,

             from C:\Users\tomti\OneDrive\Desktop\5.7 OS\ProffieOS\ProffieOS.ino:610:

c:\users\tomti\appdata\local\temp\arduino_build_331882\sketch\props\micom.h:217:8: error: ‘void AudioFx::PrintButton(uint32_t)’ marked ‘override’, but does not override

void PrintButton(uint32_t b) override {

    ^

Error compiling for board Teensy 4.0.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

When I use the ProffieOS from the repo here: GitHub - profezzorn/ProffieOS: Lightsaber Controller Software

I’m getting these errors when compiling for Teensy 4.0:

Arduino: 1.8.9 (Windows 10), TD: 1.53, Board: “Teensy 4.0, Serial, 600 MHz, Faster, US English”

In file included from C:\Users\tomti\AppData\Local\Temp\arduino_build_78389\sketch\sound/hybrid_font.h:3:0,

             from C:\Users\tomti\AppData\Local\Temp\arduino_build_78389\sketch\sound/sound.h:77,

             from C:\Users\tomti\OneDrive\Desktop\5X Micom\ProffieOS\ProffieOS.ino:366:

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:305:22: error: ‘ACCEL_MEASUREMENTS_PER_SECOND’ was not declared in this scope

Extrapolator<Vec3, ACCEL_MEASUREMENTS_PER_SECOND/filter_hz> accel_extrapolator_;

                  ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:305:61: error: template argument 2 is invalid

Extrapolator<Vec3, ACCEL_MEASUREMENTS_PER_SECOND/filter_hz> accel_extrapolator_;

                                                         ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:306:22: error: ‘GYRO_MEASUREMENTS_PER_SECOND’ was not declared in this scope

Extrapolator<Vec3, GYRO_MEASUREMENTS_PER_SECOND/filter_hz> gyro_extrapolator_;

                  ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:306:60: error: template argument 2 is invalid

Extrapolator<Vec3, GYRO_MEASUREMENTS_PER_SECOND/filter_hz> gyro_extrapolator_;

                                                        ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h: In member function ‘void Fusor::DoMotion(const Vec3&, bool)’:

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:68:26: error: request for member ‘clear’ in ‘((Fusor*)this)->Fusor::gyro_extrapolator_’, which is of non-class type ‘int’

   gyro_extrapolator_.clear(gyro);

                      ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:70:26: error: request for member ‘push’ in ‘((Fusor*)this)->Fusor::gyro_extrapolator_’, which is of non-class type ‘int’

   gyro_extrapolator_.push(gyro);

                      ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h: In member function ‘void Fusor::DoAccel(const Vec3&, bool)’:

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:76:27: error: request for member ‘clear’ in ‘((Fusor*)this)->Fusor::accel_extrapolator_’, which is of non-class type ‘int’

   accel_extrapolator_.clear(accel);

                       ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:79:27: error: request for member ‘push’ in ‘((Fusor*)this)->Fusor::accel_extrapolator_’, which is of non-class type ‘int’

   accel_extrapolator_.push(accel);

                       ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h: In member function ‘virtual void Fusor::Loop()’:

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:85:30: error: request for member ‘ready’ in ‘((Fusor*)this)->Fusor::accel_extrapolator_’, which is of non-class type ‘int’

 if (!accel_extrapolator_.ready()) return;

                          ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:86:29: error: request for member ‘ready’ in ‘((Fusor*)this)->Fusor::gyro_extrapolator_’, which is of non-class type ‘int’

 if (!gyro_extrapolator_.ready()) return;

                         ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:87:35: error: request for member ‘last_time’ in ‘((Fusor*)this)->Fusor::accel_extrapolator_’, which is of non-class type ‘int’

 if (now - accel_extrapolator_.last_time() > 1000000) return;

                               ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:88:34: error: request for member ‘last_time’ in ‘((Fusor*)this)->Fusor::gyro_extrapolator_’, which is of non-class type ‘int’

 if (now - gyro_extrapolator_.last_time() > 1000000) return;

                              ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:94:34: error: request for member ‘get’ in ‘((Fusor*)this)->Fusor::accel_extrapolator_’, which is of non-class type ‘int’

 accel_ = accel_extrapolator_.get(now);

                              ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:96:32: error: request for member ‘get’ in ‘((Fusor*)this)->Fusor::gyro_extrapolator_’, which is of non-class type ‘int’

 gyro_ = gyro_extrapolator_.get(now);

                            ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:134:34: error: request for member ‘slope’ in ‘((Fusor*)this)->Fusor::accel_extrapolator_’, which is of non-class type ‘int’

 wGyro += accel_extrapolator_.slope().len() * 1000;

                              ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h: In member function ‘Vec3 Fusor::gyro_slope()’:

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:276:31: error: request for member ‘slope’ in ‘((Fusor*)this)->Fusor::gyro_extrapolator_’, which is of non-class type ‘int’

 return gyro_extrapolator_.slope() * 1000000;

                           ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h: In member function ‘void Fusor::dump()’:

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:296:25: error: request for member ‘dump’ in ‘((Fusor*)this)->Fusor::accel_extrapolator_’, which is of non-class type ‘int’

 accel_extrapolator_.dump();

                     ^

c:\users\tomti\appdata\local\temp\arduino_build_78389\sketch\common\fuse.h:298:24: error: request for member ‘dump’ in ‘((Fusor*)this)->Fusor::gyro_extrapolator_’, which is of non-class type ‘int’

 gyro_extrapolator_.dump();

                    ^

Error compiling for board Teensy 4.0.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

The github version should compile now.

Thanks Fredrik! Fixed, and compiled.