Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic New compiling fails but work the night before?? (Read 849 times)
OneSharpChisel
Newbies
*
Offline


Posts: 5
Joined: Jun 24th, 2020
New compiling fails but work the night before??
Feb 27th, 2021 at 5:04am
Print Post  
I seem to have done something to the code for this MPU9250 sensor.  It compiled the night before, but I did something to mess it up.  Can you provide any quick guidance??  Thank you so much.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: New compiling fails but work the night before??
Reply #1 - Feb 27th, 2021 at 9:55am
Print Post  
From the log it appears you are initializing the MP9250 with 2 parameters:
Code
Select All
MPU9250.ino: 27:23: error: no matching function for call to 'MPU9250_<TwoWire>::MPU9250_(TwoWire&, int)
   MPU9250 IMU(Wire, 0x68) 



It appears as though it is only expecting the first parameter, or no parameters from the errors which follow, which identify the candidate functions which are closest to the requested one:
Code
Select All
e.g
MPU9250.h:21: note  candidate  constexpr MPU9250_<TwoWire>  MPU9250_(MPU9250_<TwoWire>&&)
MPU9250.h:21: note    candidate expects 1 argument, 2 provided 



So can only assume a change to the MP9250 class or your call to initialize it.

It may be worth looking into using Git in VS locally, or GitHub/Azureto capture your code (and libraries) when needed, it can be invaluable when things break.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint