I kind of noticed that BLDC init sequence has no good repeatability. 
Maybe this is the reason:

             else if (in_type == 0x0D) { // homing to encoder index
                 if (!index_enable){ // index has reset
                     offset_measured = long_rawcounts;
                     in_type = 0x02;
                 }
             }

Shouldn't it take some of offset, as a result of hardware encoder reset? 
What if servo-period is higher than encoder pulse period at init 
procedure? This is especially possible on vibrations, when init starts 
near index, starting oscillations on the motor.


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to