dissimilar module operation

For general discussion related FlowStone
Post Reply
nimbusgb
Posts: 11
Joined: Sun Oct 09, 2011 5:55 am

dissimilar module operation

Post by nimbusgb »

I have built a throttle position control module. its more of a 'rate of position change'. Input is a float -1 to 1 in the mid position 0 the output does not change. Moving the input below the mid position ie < 0, and the ouput ( 0 to 1 ) reduces. the further below the mid position one moves the faster the count down. similarly above the mid position the output increases with the rate changing in proportion to the displacement from the centre of the input.

this works
throttle-test.fsm
the test version works
(9.14 KiB) Downloaded 1452 times


but if i control the input with an xbox controller it only counts when the stick is moved to the limit either fully up - 1 input or fully down - -1 input..

x-throttle-test.fsm
but this doesn't
(14.88 KiB) Downloaded 1448 times


I'd appreciate some help on this one.
nkiernan
Posts: 7
Joined: Tue Oct 05, 2010 3:11 pm

Re: dissimilar module operation

Post by nkiernan »

Hi Nimbusgb,

I worked on something similar and I'll try and gather up something to post here over the weekend. Are you intending to control servos with this? My intention was to emulate hydraulics for a project (same operation as you are trying to achieve), using the twin joystick from an Xbox controller and servos connected to a Lynxmotion SSC-32 servo board. Never got it completely finished as the servos were always too jumpy (maybe down to cheap servos!).
nimbusgb
Posts: 11
Joined: Sun Oct 09, 2011 5:55 am

Re: dissimilar module operation

Post by nimbusgb »

In a roundabout way I am controlling a servo but only because I want to transmit values by xbee radio to a remote UAV platform. There is actually a microprocessor on board the UAV that does the flight control so I'm just sending process values to that system.

It could of course be used more directly which is why I have used a step count of 100 to get from 0 to 1.

Is there a 1khz trigger component or could an astable or signal generator be used to trigger the counter?
DSP
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: dissimilar module operation

Post by DSP »

You will be pleased to here that there is actually a module already inside FlowStone that does this!

Check out the 'Slide' Module!

You could also use the PID if you want proportional control.

Here are both in a project:
Attachments
Throttle New.fsm
Slide & PID
(10.27 KiB) Downloaded 1397 times
nimbusgb
Posts: 11
Joined: Sun Oct 09, 2011 5:55 am

Re: dissimilar module operation

Post by nimbusgb »

Excellent thanks
Post Reply