Question on DeltaThrottle built in HempStick

Question on DeltaThrottle built in HempStick

Postby jinxanarexi » Tue Jul 21, 2015 4:06 pm

HempStick is something I came across whist looking into building custom controllers. For better / more info on that http://www.hempstick.org/

From what I have read going through his documentation on that site, hempstick is basically way to run joysticks, buttons, switches, etc. on a more robust board than the one that is being used here for this project.

I am certainly not a programmer by any means but can somewhat read / understand what the code here is doing. I am interested in building this throttle using a bigger board like one of the two HempStick is built on to have access to more buttons and hat switches and such. Now if the DeltaThrottle was done with simple x,y,z axis (axes?) >.> this wouldn't be much of a problem, just figure out where to wire the pots on the other board and away we go, but looking at the code here it looks like there are quite a few different math equations used before the input from the pots is output to the PC.

What I was wondering is if anyone has any experience with HempStick and or where in the HempStick code the math translations might go to make this work? Would it be copy/paste like or is it something that would really have to rewrite a bunch of the HempStick code to make it go?

Any ideas much appreciated and serious kudos to Mr. Dayton for creating this... really looking forward to starting the journey into building one of these :D
jinxanarexi
 
Posts: 2
Joined: Tue Jul 21, 2015 3:45 pm

Re: Question on DeltaThrottle built in HempStick

Postby mike43110 » Thu Jul 23, 2015 4:35 am

jinxanarexi wrote:HempStick is something I came across whist looking into building custom controllers. For better / more info on that http://www.hempstick.org/

From what I have read going through his documentation on that site, hempstick is basically way to run joysticks, buttons, switches, etc. on a more robust board than the one that is being used here for this project.

I am certainly not a programmer by any means but can somewhat read / understand what the code here is doing. I am interested in building this throttle using a bigger board like one of the two HempStick is built on to have access to more buttons and hat switches and such. Now if the DeltaThrottle was done with simple x,y,z axis (axes?) >.> this wouldn't be much of a problem, just figure out where to wire the pots on the other board and away we go, but looking at the code here it looks like there are quite a few different math equations used before the input from the pots is output to the PC.

What I was wondering is if anyone has any experience with HempStick and or where in the HempStick code the math translations might go to make this work? Would it be copy/paste like or is it something that would really have to rewrite a bunch of the HempStick code to make it go?

Any ideas much appreciated and serious kudos to Mr. Dayton for creating this... really looking forward to starting the journey into building one of these :D


Looked at the source - this could be a good reason for me to buy a due!
Our changes would be entirely in rtos_joystick.c
There we would add our constants for the throttle geometry and the handling code for the rest of it.
Init would be edited as well as adc task. Then once that is edited - you have a delta on HempStick.
mike43110
 
Posts: 21
Joined: Fri Apr 24, 2015 11:45 pm

Re: Question on DeltaThrottle built in HempStick

Postby jinxanarexi » Thu Jul 23, 2015 1:53 pm

Nice :D so this IS possible and thanks for taking a look :D

As stated am mostly novice, but I was thinking along those lines myself upon further investigation in the HempStick code.

My thoughts:
-Zeroing the axes would go in the Init section?
-Would handle translating the x,y,z axes outside that main for() loop in the adc task and then start the loop from 3 (if x,y,z is adc channels 0,1,2) ?

hmm... well i suppose now i REALLY need to go find and learn myself how to 3d design and print stuff to make this >.>
jinxanarexi
 
Posts: 2
Joined: Tue Jul 21, 2015 3:45 pm


Return to Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron