Using constrain() to limit servo movement
Topic: Using constrain() to limit servo movement
(Read 910 times)
Re: Using constrain() to limit servo movement
Dec 11, 2012, 04:58 pm
I can't guess what the 'stable' and 'reset' functions are intended to do. Left and right appear to be relative moves. If I was controlling the aileron positions directly, I'd define separate methods to move the ailerons by a relative amount, to an absolute position, or whatever other type of movement I needed. I wouldn't lump all these different functions together into a single method with flags to say what functionality I was trying to access. Moving left and right are IMO essentially the same thing - moving by an amount which might be positive or negative - so I would expect one function to handle both directions.
I only provide help via the forum - please do
contact me for private consultancy.