MtrVel_SwAlgorithm_Analysis


Overview

Overview
Fixed Point Model


Sheet 1: Overview



Sheet 2: Fixed Point Model

Time[z-8] (us)Time (us)Cos [z-8] (p13)Sin[z-8] (p13)Cos (p13)Sin (p13)Time[z-8] (us)Time (us)∆t2t2t2∆ Theta (p13)Velocity (p24)2t*Velocity (p24)
t0 (uS)20000


200002100081920818141301000100010001000000413845845000
sample inc (uS)63


20063210638191258180439631063100011261267876414847953722
loop seperation (uS)1000


2012621126819151817846612611261000125215675044158491062948
offset20000


2018921189819177817749218911891000137818988844158491169922





20252212528191103817551825212521000150422620164158491276896
Actual Velocity(rad/s)500.00005

20315213158190129817354531513151000163026569004168511387130
Actual Accel(rad/s2)5005E-10

20378213788190155817257137813781000175630835364168511494356
Initial theta0


20441214418189181817059844114411000188235419244178541607228
TimeOffset(uS)100


raw




Relative time
80001152817278640332167959797202




















B1Num (p24)44856

















B1Num (p35) LimitedJeremy Warmbier: limit the p24 number prior to scaling up to prevent an overflow. Scaling upt to a sm4p35, which means the max on the positive side is 0.625 - 1 count 91865088
A00.5240920730306















Bden (pm7)41674
N1P0.09361941664774















Slope (p42)2204
N2P1.488737214789















∆ Theta Intercept (p24)849
E1P1.27106431778















Predicted ∆ Theta (p24)84900050.6043434143066E2P3.700991517299















Correction ScalerJeremy Warmbier: The correction scaler is computed using the existing FDD algorihtm and not the LabView model attached to the PSR. The only difference being that time does not need to be factored out of the expression due to being done prior to division by time. 1.0004

















Corr. ∆ Theta (float)0.050626

















Avg. ∆t1000

















Motor Velocity (rad/sec)50.626

















Motor Accel (rad/s2)501.132













































































Averaging Motor Velocity Algorithm


















∆t1000
A00.524997832















∆ sin415
N1P94250.18578















∆ cos-15
N2P1484093.006















Cos_Theta1_OS8175
E1P1270451.499















Sin_Theta1_OS505
E2P3702672.882















West50.684

















Correction Scaler1.0004

















Motor Velocity (rad/sec)50.706


Last modified October 12, 2025: Initial commit (0347a62)