Skip to content

Commit

Permalink
按钮功能改为清除绘图区域;增加了电流-转速曲线
Browse files Browse the repository at this point in the history
  • Loading branch information
Athameral committed Dec 2, 2023
1 parent 72e103a commit 5cb9a52
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,8 @@ def calc_args(
P_2 = (T_e - Motor.T_f * n / Motor.n_N) * n * 2 * pi / 60
eta = P_2 / P_1
return (P_1, P_e, P_2, E_1, I_1, n, T_e, eta)
# TO DO:
# 修改电机动力学模型,增加摩擦力系数

calc_args_2 = np.vectorize(calc_args, excluded=[0, 1, 2])

if __name__ == "__main__":
print(calc_args(0.2, 600, 220, 5))
import numpy as np
import matplotlib.pyplot as plt

0 comments on commit 5cb9a52

Please sign in to comment.