teemuatlut / TMCStepper

MIT License
515 stars 201 forks source link

'class TMC5130Stepper' has no member named 'A1' #229

Closed daniel-frenkel closed 2 years ago

daniel-frenkel commented 2 years ago

I am using the TMC5130 in positioning mode. When setting up these motor velocity parameters

  driver.RAMPMODE(0);
  driver.A1(100);
  driver.AMAX(300);
  driver.DMAX(800);
  driver.D1(3000);
  driver.VSTART(0);
  driver.VSTOP(10);
  driver.V1(2500);
  driver.VMAX(120000);  

I receive the following error:

error: 'class TMC5130Stepper' has no member named 'A1'
   driver.A1(100);
          ^
5130-test:38:10: error: 'class TMC5130Stepper' has no member named 'D1'
   driver.D1(3000);
          ^
5130-test:41:10: error: 'class TMC5130Stepper' has no member named 'V1'
   driver.V1(2500);
          ^

This is very strange because the class does contain all of these members, as seen here. It's weird that only the values with a 1 are doing this. Any idea why?

teemuatlut commented 2 years ago

The A1 V1 and D1 were renamed to lower case because they clashed with namespace polluting macros from the Arduino framework. The doxygen files haven't been generated after the change.

daniel-frenkel commented 2 years ago

The A1 V1 and D1 were renamed to lower case because they clashed with namespace polluting macros from the Arduino framework. The doxygen files haven't been generated after the change.

That fixed it. Thanks!