Hi, I’m not sure if I found a bug or its just something stupid but Im using this
lynxmotion.com/images/files/phoen1.3.bas
When I change gait type pressing the square button it really appears that the there are only 2 gait’s and when I look into the code I see that there are 7 programmed…
Are all these gaits so similar you cant distinguish them apart from each other?
On a side note, I feel that I needed to slightly modify the code a tad to help me understand if there is some sort of issue with the gait selection code “the code looks well written” so I don’t want to step on anyone’s toes here when I say this.
So basically I added this
;[gait]
GaitType var byte ;Gait type
SoundLoop var byte
NomGaitSpeed var byte ;Nominal speed of the gait
then down where the gait variable adding is going on I added this
;Switch to next Gait type
IF GaitType<7 THEN
GaitType = GaitType+1
For SoundLoop = 1 to 7
Sound P9,[50\4000]
Pause 200
SoundLoop = SoundLoop+1
Next
ELSE
Sound P9,[50\4000, 50\4500]
GaitType = 0
ENDIF
the idea I find is a better solution to determining where you are audibly in the gait selection "1-7’
So it’s suppose to beep the number of times based on the gait selection gait 4… beep 4 times… ext…
come to think of it I suppose I could probably use gaittype variable rather then create my own variable… besides the point it just seems like there are 2 different gaits only???
What gives?
–Aaron