Hello Pololu Community. I have been having a great time setting up a 6 servo/robotic arm project using an Arduino R4 Minima communicating via RX/TX to a MiniMaestro 12. There were a few hiccups along the way, though I was able to resolve them by searching the support forum here. (also, picked up quite a few very useful tips). However, I am now stuck. I can’t get the R4 to recognize the “setMultiTarget” command and compile it. The Arduino Error I get is " No matching function for call to ‘MiniMaestro::setMultiTarget(uint8_t&, uint8_t&, uint16_t&, uint16_t&,uint16_t&,uint16_t&,uint16_t&,uint16_t&,)’. all other commands compile and perform properly.
Arduino Setup as follows:
#include <PololuMaestro.h>
MiniMaestro maestro(Serial1, 255, 255, false);
void setup() { Serial1.begin(9600);}
Hello.
From the error message you posted, I suspect you are trying to pass each target value into the command as its own argument. Please note that as described by the library’s documentation for the setMultiTarget() command, the command only has 3 arguments, the third of which (targetList) is supposed to be an array of the target values.
If you continue having problems, could you post a copy of the complete code you’re using?
Brandon
Hey Brandon,
Thank you for the quick response. Yes, that is exactly what I was doing ( sending 6 seperate values) and have since replaced with a single array. And now my Maestro is conducting quite the impressive symphony, while the ACS724(#4048) keep a watchful eye over every movement. Thank you again and I look forward to learning more about Maestro controllers.
1 Like