function [Kv,Kt,R,Io]=rubber(HP)
% Rubber motor scaled by horsepower. AstroFlight Sport Motors
% for Aircraft.

%m =-1.0980;
%b =2.4481;

%m =333.8679;
%b =-504.1560;
%c =432.0502;

m =308.1641;
b =-460.8027;
c =425.4390;


%m2 =4.4427;
%b2 =0.0870;
m2 =4.3634;
b2 = -0.0019;

%m3 =-0.4870;
%b3 =0.8740;
m3 =-0.0113;
b3 =0.1506;
c3 =-0.0159;

%m4 =0.3446;
%b4 =2.1008;
m4 =1.2009;
b4 =1.0418;
c4 =0.1849;

Kv=m*HP+b+c./HP;
Kt=m2*HP+b2;
R =m3*HP+b3+c3./HP;
Io=m4*HP+b4+c4./HP;
