All pastes #368470 Raw Edit

Untitled

public text v1 · immutable
#368470 ·published 2007-02-23 02:50 UTC
rendered paste body
Index: ../pluto_servo.comp
===================================================================
RCS file: /cvs/emc2/src/hal/drivers/pluto_servo.comp,v
retrieving revision 1.9.2.1
diff -u -p -u -r1.9.2.1 pluto_servo.comp
--- ../pluto_servo.comp	13 Jan 2007 12:35:53 -0000	1.9.2.1
+++ ../pluto_servo.comp	23 Feb 2007 02:49:54 -0000
@@ -489,7 +489,7 @@ FUNCTION(read) {
 	data.reset_count[2] = index;
     }
     encoder_2_velocity = (count - data.last_count[2]) / encoder_2_scale;
-    debug_0 = count; debug_1 = index;
+    debug_0 = ppdata & 0x3fff; debug_1 = (ppdata >> 14) & 0x3fff;
 
     data.last_index[2] = index;
     data.last_count[2] = count;