T-hex defining 4DOF

New to the forums and brought a briefcase full of unanswered questions. Trying to get a T-hex 4DOF kit put together and I’m stuck on actually getting the 4DOF to function. I’ve read that there is more to just defining it. I’ll start with this first question: whenever 4DOF is defined I keep getting the compiler error that ‘sTarsAngle1’ was not declared in this scope. Any information would be greatly appreciated.

What software are you using?

I am not sure if Lynxmotion ever picked up and tried the T-Hex 4DOF profile that I put together awhile ago. I am having a hard time finding which thread it is in, but finally found it by looking for the attachment… post-p89084#p89084

Again as I mentioned, in that thread, I am using my own versions of the Phoenix code base.

Kurt

I have the botboarduino. What would I need to do to get the code working correctly without compiler errors? Another problem I’m having is the ps2 controller not syncing with the receiver. It will only sync when the botboarduino is plugged into the computer. Thanks.

So on the Botboarduino, What code base did you download to support the T-Hex24? If it is off of Lynxmotion github, they may not have a version that has this support in it. If it is from my github (github.com/kurte) and you are receiving compile errors, please post the sketch you are using including the Hex_Cfg.h file, so I can try it out and if necessary fix any issues.

Note: I don’t actually have this configuration, but do have T-Hex3 and a round hex with 4DOF T-Hex legs.

Edit: As for PS2… maybe need to see picture of your Botboarduino showing the jumper settings…

Kurt

I have everything a mess right now. If I were to start at step one and so forth software-wise, what would those steps be? I’m completely new to all of this and oblivious as to where things should be placed in the folders. I’ll get a picture showing the jumpers shortly.

Here is what I did on my Intel NUC running Ubuntu 14.04 with a fresh install of Arduino 1.0.5, which is a secondary setup I have to hopefully learn more Linux and ROS.

I installed Arduino from Arduino.cc (did not install packages from ubuntu…)

I installed Teensyduino (but that is a different story not needed here)

I downloaded my Arduino Phoenix in Parts project: github.com/KurtE/Arduino_Phoenix_Parts
(On windows I use github for windows, which makes things easy). On Linux can use git command… Or can simply download as zip file. There is a readme.md file as part of this project. But what you need to do is to copy the libraries in this (all of the sub-directories) into the libraries folder of your Arduino Sketch folder. On my windows machine this is some folder like:
C:\Users\Kurt\Documents\Arduino\libraries On Linux it is something like: ~/sketchbook/libraries

Also you need a PS2X library. I use my fork of the official version, which is up at: github.com/KurtE/Arduino-PS2X. Like above, but only copy the sub directory ps2x_lib into the library folder.

Grab the sketch file zip file I put up in the posting: post-p89084#p89084
extract the files in your sketch folder.

Now open this sketch and try to compile it. Not there is a problem with the zip file on linux, that my include of a Hex_CFG.h fails as the actual file name does not have the same character casing (windows file system is not case sensitive). So either edit the include to match the file name or change the file name to match the include (again only in issue on linux).
It should then hopefully compile.

Kurt
P.S. - I also want to check my quad-support branch of the Arduino Phoenix in Parts to make sure it also compiles, but hopefully that should get you up and running

That did the trick. I need to make some adjustments, but no compiler errors and its the first time it really did what it was intended to do. Still having syncing issues. Any guides on how to connect the v3 PS2 controller to the botboardunio? Thanks for the help, kurte.

Nevermind, I found the problem. Everything works as it should. Anyways, thanks again.