Limiting fpx value for PAK VIII
Hello,
I'm having quite a problem controlling the PAK to
limit the fpx value within operating range of 100 and
200 (1ms and 2ms). As I will be controlling multiple
channel, it would be easy for me to make mistake in
the value input which somewhat has already damaged
some of my Futaba S3801 expensive gearset.
Someone could direct me a safe routine for that.
Thanks.
wor
I'm having quite a problem controlling the PAK to
limit the fpx value within operating range of 100 and
200 (1ms and 2ms). As I will be controlling multiple
channel, it would be easy for me to make mistake in
the value input which somewhat has already damaged
some of my Futaba S3801 expensive gearset.
Someone could direct me a safe routine for that.
Thanks.
wor
Comments
Why not write a single routine to set the on time and test for your limit
values there?
SetOnTime:
register=1
if fpx<100 or fpx>200 then xret ' use whatever limits you want here
' copy of FCommand
fpb=(register<<3) + chan
gosub FSendByte
fpb=fpx.lowbyte
gosub FSendByte
fpb=fpx.highbyte
goto FSendByte
xret:
return
FCommand: ' new version of FCommand
if register=1 then SetOnTime ' don't allow normal setting of register 1
fpb=(register<<3) + chan
gosub FSendByte
fpb=fpx.lowbyte
gosub FSendByte
fpb=fpx.highbyte
goto FSendByte
Hope that helps.
Al Williams
AWC
* Control 8 servos at once: http://www.al-williams.com/awce/pak8.htm
>
Original Message
> From: wor73@y... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=eF287M5g0yT6DykvIy1MiMBwKosrmMsb3-GVlLP2r_CzrjKp0OaOyl83XohyiNisuixD5GI1I2sZ7WM]wor73@y...[/url
> Sent: Wednesday, February 07, 2001 11:05 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Limiting fpx value for PAK VIII
>
>
> Hello,
>
> I'm having quite a problem controlling the PAK to
> limit the fpx value within operating range of 100 and
> 200 (1ms and 2ms). As I will be controlling multiple
> channel, it would be easy for me to make mistake in
> the value input which somewhat has already damaged
> some of my Futaba S3801 expensive gearset.
>
> Someone could direct me a safe routine for that.
>
> Thanks.
> wor
>
>
>