Need help with "Clunky Code"
gc3076
Posts: 44
I have been working (on and off) on a project that used a serial out electronic inclinometer to calculate elevation. Stage two was to use a Grayhill 2-bit optical encoder to count the rotations of a large jack screw . The results of both routines are displayed real-time on a 2x16 serial LCD display. Each result having its own line on the display.
Each routine works fine on its own my problem exists during the merge. I seem to be missing optical encoder counts b/c the inclinometer takes too long to execute thus causing rotation count errors.
Could someone give me an option on this, it would be much appreciated.
GC3076
Each routine works fine on its own my problem exists during the merge. I seem to be missing optical encoder counts b/c the inclinometer takes too long to execute thus causing rotation count errors.
Could someone give me an option on this, it would be much appreciated.
GC3076
Comments
gc3076, your DO...LOOP GOSUBs to "EL"; "EL" GOSUBs to "Get_Spec_Tilt", at the start, but "EL" does not have a RETURN following its SEROUT instruction, so it is proceeding to "Get_Spec_Tilt", as allanlane5 noted.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
My last words shall be - "NOT YET!!!"