Help with Servo32v7 - Stop/Pause Servo
I hope this is a quick/easy question!
I'm using Servo32v7, and I'd like to let the servo "relax". I don't care about it's subsequent position, I'd just like to cut the power to the servo after I've finished actuating it.
I could not find a "stop" function in the object, but this seems like a straighforward task (i.e. stop pulses on that pin). The assembly portion is a little hairy for my Propeller knowlege depth, so can anyone suggest code for a "stop" PUB?
I'm using Servo32v7, and I'd like to let the servo "relax". I don't care about it's subsequent position, I'd just like to cut the power to the servo after I've finished actuating it.
I could not find a "stop" function in the object, but this seems like a straighforward task (i.e. stop pulses on that pin). The assembly portion is a little hairy for my Propeller knowlege depth, so can anyone suggest code for a "stop" PUB?

Comments
It seems like it would be a good idea if it at least returned the cog number so the parent object could stop the cog if needed.
I suppose anyone wanting to top and retart a cog would probably know how to do this themseleves, but it just seems odd there isn't any information returned from the Start method.
Changing:
PUB Start RampFlag := 0 ZoneClocks := (clkfreq / _1uS * ZonePeriod) 'calculate # of clocks per ZonePeriod NoGlitch := $FFFF_FFFF-(clkfreq / _1uS * NoGlitchWindow) 'calculate # of clocks for GlitchFree servos. Problem occurs when 'cnt' value rollover is less than the servo's pulse width. cognew(@ServoStart,@ZoneClocks)To:
PUB Start RampFlag := 0 ZoneClocks := (clkfreq / _1uS * ZonePeriod) 'calculate # of clocks per ZonePeriod NoGlitch := $FFFF_FFFF-(clkfreq / _1uS * NoGlitchWindow) 'calculate # of clocks for GlitchFree servos. Problem occurs when 'cnt' value rollover is less than the servo's pulse width. [B]result := [/B]cognew(@ServoStart,@ZoneClocks)The added "result :=" doesn't even increase the program size (which I think is kind of strange).