ddt-sharp-shooter icon indicating copy to clipboard operation
ddt-sharp-shooter copied to clipboard

數據優化 20241025

Open galaxy890624 opened this issue 1 year ago • 1 comments

我發現在80度和預期比少了3~4力度 我用以下數據訓練,想看看這組數據會不會更好:

def calfix30(dx, f): temp = [0, 14, 20, 24.7, 28.7, 32.3, 35.7, 38.8, 41.8, 44.7, 47.5, 50.2, 52.8, 55.3, 57.9, 60.3, 62.7, 65.7, 67.5, 69.8, 72.1] return temp[dx] - f, 30

def calfix45(dx, f): temp = [0, 10, 15, 20, 25, 30, 33.3, 36.7, 40, 43, 46, 48.5, 51, 53, 55, 58, 60, 62, 64, 66, 68] #return temp[dx] - f, 45 return temp[dx] - dx * f / 10, 45

def calfix50(dx, f): temp = [0, 14.1, 20.1, 24.8, 28, 32.5, 35.9, 39.0, 42.0, 44.9, 48.3, 50.5, 53, 55.5, 58, 60.5, 63.0, 65.5, 68.0, 70.0, 72.5] return temp[dx] - f, 50

def calflo65(dx, f): temp = [0, 13, 21, 26, 31.5, 37, 41, 44, 48.5, 53, 56, 58, 61, 64, 67, 70, 73, 76, 79, 82, 85] return temp[dx], 65 + 2 * f

def calflo70(dx, f): temp = [0, 15, 22, 28, 34, 40, 44, 48, 53, 58, 62, 66, 70, 73, 76, 80, 84, 87, 90, 93, 97] return temp[dx], 70 + 2 * f

def calflo80(dx, f): temp = [0, 21, 32, 43, 51, 60, 67, 74, 81, 88, 95] return temp[dx], 80 + 2 * f

def high(dx, f): # high shoot temp = [0, 75, 87.5, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95.5, 96, 96.5, 97] return temp[dx], 90 - dx + 2 * f

然後我得到了一組 R, W, g = [ 1.05235296, 5.50186622, -163.56591668] 我用了以下的測試數據: print(_calF(45, 0.0, 15.0, 0.0)) #expect value = 58 print(_calF(80, 0.0, 10.0, 0.0)) #expect value = 95 print(_calF(70, 0.0, 20.0, 0.0)) #expect value = 97 print(_calF(65, 0.0, 16.0, 0.0)) #expect value = 73 print(_calF(20, 0.0, 20.0, 0.0)) #expect value = 80

以下是這組數據的效果: 57.8815187985442 94.49848749994946 96.98095885307298 74.27745423444532 79.42446941417722

galaxy890624 avatar Oct 25 '24 09:10 galaxy890624

Got it! 🫰

tkzt avatar Oct 25 '24 13:10 tkzt