Can't compile - AccelStepperPositionSetter

83 views
Skip to first unread message

Brian McClain

unread,
Jan 27, 2014, 11:07:13 AM1/27/14
to rc...@googlegroups.com
Hey guys.  I am new to this group and found the RCKit online and it appears as though it is exactly what I need however, I am having a problem compiling the example code.  

I added the library and and trying to compile the 'RCRxWiShield' sketch and get the following errors:


C:\Program Files (x86)\Arduino\libraries\RCKit\AccelStepperPositionSetter.cpp: In member function 'virtual void AccelStepperPositionSetter::input(int)':
C:\Program Files (x86)\Arduino\libraries\RCKit\AccelStepperPositionSetter.cpp:23: error: invalid use of incomplete type 'struct AccelStepper'
C:\Program Files (x86)\Arduino\libraries\RCKit\/AccelStepperPositionSetter.h:14: error: forward declaration of 'struct AccelStepper'


I wanted to ask around here before I start jacking up the cpp files to get it to work.

Here is what I am trying to do:

I have a Arduino Due with the WiShield.  I am trying to connect it to the Sabertooth2x25 for dual motor controls.  I see there is a Differential drive example (which gives me the same errors) but I dont think I need that since the Sabertooth does this part for me.  

Can anyone point me in the direction as to what I should do?

Thanks!

Brian McClain

unread,
Jan 27, 2014, 11:30:09 AM1/27/14
to rc...@googlegroups.com
OK, update: I realized that I was missing the AccellStepper.h file in my arduino libraries.   Still can't get it to compile but now I am looking at a new set of error messages:


In file included from C:\Program Files (x86)\Arduino\libraries\RCKit\WiShieldTransceiver.cpp:64:
C:\Program Files (x86)\Arduino\libraries\WiShield/udpapp.h:42: error: conflicting declaration 'typedef struct socket_app_state uip_tcp_appstate_t'
C:\Program Files (x86)\Arduino\libraries\WiShield/server.h:65: error: 'uip_tcp_appstate_t' has a previous declaration as 'typedef struct conn_state uip_tcp_appstate_t'
C:\Program Files (x86)\Arduino\libraries\RCKit\WiShieldTransceiver.cpp: In function 'void udpapp_init()':
C:\Program Files (x86)\Arduino\libraries\RCKit\WiShieldTransceiver.cpp:90: error: invalid use of incomplete type 'struct uip_udp_conn'
C:\Program Files (x86)\Arduino\libraries\WiShield/uip.h:799: error: forward declaration of 'struct uip_udp_conn' 

Brian McClain

unread,
Jan 27, 2014, 11:40:30 AM1/27/14
to rc...@googlegroups.com
Nevermind.... I am an idiot... I should have just kept reading the notes in the RCRx.h file   .  Downloading the updated WiShield library is what I needed.  I had jacked with those settings a while ago for something else.

Got the sketch to compile!!
Reply all
Reply to author
Forward
0 new messages