Unable to compile VNH5019 Driver

Scott here from Salem. When I try to compile my code on my laptop, I get the error
‘DualVNH5019MotorShield’ does not name a type’. On my desktop, it compiles fine without
any problems.

My code:

DualVNHMotorShield md:

The code above is where it stops with the error.
Below the error it says that ‘md’ was not declared in this scope. I downloaded the library twice
to see if I could fix it but to no avail.
Thank you for your help.

Hi, Scott.

Sorry to hear you are having trouble. Did you install the library on your laptop’s Arduino directory using the instructions in the README file? Are both your computers using the same version of the Arduino IDE software? Can you try compiling the Demo program example that is installed with the library?

- Ryan

Hi Ryan,
Thank you for your guidance. I had not read the “read me” file and just downloaded the motor controller library directly into the arduino library. So I deleted the motor control library and unzipped it and “dragged” it into the arduino library. It works!!!
Thanks again.
p.s. I just bought another controller. :slight_smile:

I am glad you got it working! Thanks for letting us know what the problem was.

- Ryan