?? weather_data.c
字號:
/*
* weather_data.c
*
* Real-Time Workshop code generation for Simulink model "weather.mdl".
*
* Model Version : 1.4
* Real-Time Workshop file version : 5.0 $Date: 2002/05/30 19:21:33 $
* Real-Time Workshop file generated on : Mon Jan 29 12:34:09 2007
* TLC version : 5.0 (Jun 18 2002)
* C source code generated on : Mon Jan 29 12:34:09 2007
*/
#include "weather.h"
#include "weather_private.h"
/* Block parameters (auto storage) */
Parameters rtP = {
/* x_data_a_Value : '<S3>/x data' */
{ 0.0, 0.6, 1.2, 1.8, 2.4, 3.0, 3.6, 4.2, 4.8, 5.4, 6.0, 6.6, 7.2, 7.8, 8.4,
9.0, 9.6, 10.2, 10.8, 11.4, 12.0, 12.6, 13.2, 13.8, 14.4, 15.0, 15.6, 16.2,
16.8, 17.4, 18.0, 18.6, 19.2, 19.8, 20.4, 21.0, 21.6, 22.2, 22.8, 23.4,
24.0, 24.6, 25.2, 25.8, 26.4, 27.0, 27.6, 28.2, 28.8, 29.4, 30.0, 30.6,
31.2, 31.8, 32.4, 33.0, 33.6, 34.2, 34.8, 35.4, 36.0, 36.6, 37.2, 37.8,
38.4, 39.0, 39.6, 40.2, 40.8, 41.4, 42.0, 42.6, 43.2, 43.8, 44.4, 45.0,
45.6, 46.2, 46.8, 47.4, 48.0, 48.6, 49.2, 49.8, 50.4, 51.0, 51.6, 52.2,
52.8, 53.4, 54.0, 54.6, 55.2, 55.8, 56.4, 57.0, 57.6, 58.2, 58.8, 59.4, 60.0
} ,
1.0 , /* Weight_a_Value : '<S5>/Weight' */
/* sun_Value : '<S19>/sun' */
{ 1.0, 9.7035294117647042E-001, 9.4070588235294106E-001,
9.1105882352941159E-001, 8.8141176470588223E-001, 8.5176470588235265E-001,
8.2211764705882318E-001, 7.9247058823529382E-001, 7.6282352941176423E-001,
7.3317647058823476E-001, 7.0352941176470540E-001, 6.7388235294117593E-001,
6.4423529411764646E-001, 6.1458823529411688E-001, 5.8494117647058752E-001,
5.5529411764705805E-001, 5.2564705882352858E-001, 4.9599999999999911E-001,
4.6635294117646958E-001, 4.3670588235294017E-001, 4.0705882352941070E-001,
3.7741176470588123E-001, 3.4776470588235181E-001, 3.1811764705882228E-001,
2.8847058823529281E-001, 2.5882352941176340E-001, 2.2917647058823393E-001,
1.9952941176470448E-001, 1.6988235294117493E-001, 1.4023529411764557E-001,
1.1058823529411604E-001, 8.0941176470586518E-002, 5.1294117647057151E-002,
2.1647058823527618E-002, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } ,
/* high_Value : '<S18>/high' */
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.025, 0.05, 0.075, 0.1, 0.125, 0.15, 0.175, 0.2, 0.225, 0.25, 0.275,
0.3, 0.325, 0.35, 0.375, 0.4, 0.425, 0.45, 0.475, 0.5, 0.525, 0.55, 0.575,
0.6, 0.625, 0.65, 0.675, 0.7, 0.725, 0.75, 0.775, 0.8, 0.825, 0.85, 0.875,
0.9, 0.925, 0.95, 0.975, 1.0 } ,
1.0 , /* Weight_b_Value : '<S7>/Weight' */
/* mid_Value : '<S18>/mid' */
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.025, 0.05, 0.075,
0.1, 0.125, 0.15, 0.175, 0.2, 0.225, 0.25, 0.275, 0.3, 0.325, 0.35, 0.375,
0.4, 0.425, 0.45, 0.475, 0.5, 0.525, 0.55, 0.575, 0.6, 0.625, 0.65, 0.675,
0.7, 0.725, 0.75, 0.775, 0.8, 0.825, 0.85, 0.875, 0.9, 0.925, 0.95, 0.975,
1.0, 0.975, 0.95, 0.925, 0.9, 0.875, 0.85, 0.825, 0.8, 0.775, 0.75, 0.725,
0.7, 0.675, 0.65, 0.625, 0.6, 0.575, 0.55, 0.525, 0.5, 0.475, 0.45, 0.425,
0.4, 0.375, 0.35, 0.325, 0.3, 0.275, 0.25, 0.225, 0.2, 0.175, 0.15, 0.125,
0.1, 0.075, 0.05, 0.025, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0 } ,
1.0 , /* Weight_c_Value : '<S8>/Weight' */
/* low_Value : '<S18>/low' */
{ 1.0, 0.975, 0.95, 0.925, 0.9, 0.875, 0.85, 0.825, 0.8, 0.775, 0.75, 0.725,
0.7, 0.675, 0.65, 0.625, 0.6, 0.575, 0.55, 0.525, 0.5, 0.475, 0.45, 0.425,
0.4, 0.375, 0.35, 0.325, 0.3, 0.275, 0.25, 0.225, 0.2, 0.175, 0.15, 0.125,
0.1, 0.075, 0.05, 0.025, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } ,
1.0 , /* Weight_d_Value : '<S9>/Weight' */
/* cloudy_Value : '<S19>/cloudy' */
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 9.1476695222883642E-003, 6.4033686656018871E-002,
1.1891970378974921E-001, 1.7380572092347957E-001, 2.2869173805720991E-001,
2.8357775519094025E-001, 3.3846377232467073E-001, 3.9334978945840110E-001,
4.4823580659213141E-001, 5.0312182372586178E-001, 5.5800784085959210E-001,
6.1289385799332263E-001, 6.6777987512705284E-001, 7.2266589226078326E-001,
7.7755190939451380E-001, 8.3243792652824400E-001, 8.8732394366197453E-001,
9.4220996079570474E-001, 9.9709597792943516E-001, 9.5684667309546523E-001,
9.1128254580520518E-001, 8.6571841851494480E-001, 8.2015429122468475E-001,
7.7459016393442437E-001, 7.2902603664416399E-001, 6.8346190935390394E-001,
6.3789778206364356E-001, 5.9233365477338351E-001, 5.4676952748312313E-001,
5.0120540019286286E-001, 4.5564127290260270E-001, 4.1007714561234238E-001,
3.6451301832208227E-001, 3.1894889103182195E-001, 2.7338476374156157E-001,
2.2782063645130149E-001, 1.8225650916104114E-001, 1.3669238187078106E-001,
9.1128254580520707E-002, 4.5564127290260353E-002, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } ,
1.0 , /* Weight_e_Value : '<S10>/Weight' */
1.0 , /* Weight_f_Value : '<S11>/Weight' */
1.0 , /* Weight_g_Value : '<S12>/Weight' */
/* rainy_Value : '<S19>/rainy' */
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
9.3987766671641219E-003, 6.5791436670148182E-002, 1.2218409667313192E-001,
1.7857675667611597E-001, 2.3496941667909971E-001, 2.9136207668208375E-001,
3.4775473668506784E-001, 4.0414739668805155E-001, 4.6054005669103565E-001,
5.1693271669401930E-001, 5.7332537669700345E-001, 6.2971803669998749E-001,
6.8611069670297153E-001, 7.4250335670595491E-001, 7.9889601670893895E-001,
8.5528867671192310E-001, 9.1168133671490714E-001, 9.6807399671789118E-001,
9.7859287299307907E-001, 9.2925205586737747E-001, 8.7991123874167598E-001,
8.3057042161597439E-001, 7.8122960449027279E-001, 7.3188878736457186E-001,
6.8254797023887026E-001, 6.3320715311316877E-001, 5.8386633598746718E-001,
5.3452551886176558E-001, 4.8518470173606465E-001, 4.3584388461036311E-001,
3.8650306748466151E-001, 3.3716225035895997E-001, 2.8782143323325843E-001,
2.3848061610755744E-001, 1.8913979898185587E-001, 1.3979898185615433E-001,
9.0458164730452761E-002, 4.1117347604751199E-002, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 } ,
1.0 , /* Weight_h_Value : '<S13>/Weight' */
1.0 , /* Weight_i_Value : '<S14>/Weight' */
1.0 , /* Weight_j_Value : '<S6>/Weight' */
/* snowy_Value : '<S19>/snowy' */
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
3.0985408034585472E-002, 6.5033327328406526E-002, 9.9081246622227587E-002,
1.3312916591604865E-001, 1.6717708520986971E-001, 2.0122500450369035E-001,
2.3527292379751141E-001, 2.6932084309133247E-001, 3.0336876238515353E-001,
3.3741668167897459E-001, 3.7146460097279527E-001, 4.0551252026661633E-001,
4.3956043956043739E-001, 4.7360835885425845E-001, 5.0765627814807945E-001,
5.4170419744190013E-001, 5.7575211673572124E-001, 6.0980003602954225E-001,
6.4384795532336336E-001, 6.7789587461718437E-001, 7.1194379391100504E-001,
7.4599171320482616E-001, 7.8003963249864716E-001, 8.1408755179246817E-001,
8.4813547108628928E-001, 8.8218339038010996E-001, 9.1623130967393096E-001,
9.5027922896775208E-001 } ,
0.0 , /* Prevent_Div_1_a_Value : '<S3>/Prevent Div//1' */
/* x_data_b_Value : '<S4>/x data' */
{ -10.0, -9.5, -9.0, -8.5, -8.0, -7.5, -7.0, -6.5, -6.0, -5.5, -5.0, -4.5,
-4.0, -3.5, -3.0, -2.5, -2.0, -1.5, -1.0, -0.5, 0.0, 0.5, 1.0, 1.5, 2.0,
2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5, 7.0, 7.5, 8.0, 8.5, 9.0, 9.5,
10.0, 10.5, 11.0, 11.5, 12.0, 12.5, 13.0, 13.5, 14.0, 14.5, 15.0, 15.5,
16.0, 16.5, 17.0, 17.5, 18.0, 18.5, 19.0, 19.5, 20.0, 20.5, 21.0, 21.5,
22.0, 22.5, 23.0, 23.5, 24.0, 24.5, 25.0, 25.5, 26.0, 26.5, 27.0, 27.5,
28.0, 28.5, 29.0, 29.5, 30.0, 30.5, 31.0, 31.5, 32.0, 32.5, 33.0, 33.5,
34.0, 34.5, 35.0, 35.5, 36.0, 36.5, 37.0, 37.5, 38.0, 38.5, 39.0, 39.5, 40.0
} ,
0.0 , /* Prevent_Div_1_b_Value : '<S4>/Prevent Div//1' */
0.0 , /* Zero_Value : '<S2>/Zero' */
/* MidRange_Value : '<S2>/MidRange' */
{ 30.0, 15.0 } ,
1.0 , /* Switch_Threshold : '<S2>/Switch' */
/* Start of <S52>/If Action Subsystem2 */
{
15.0 , /* b_Value : '<S63>/b' */
40.0 /* c_Value : '<S63>/c' */
}
/* End of <S52>/If Action Subsystem2 */
,
/* Start of <S52>/If Action Subsystem3 */
{
-10.0 , /* a_Value : '<S64>/a' */
15.0 /* b_Value : '<S64>/b' */
}
/* End of <S52>/If Action Subsystem3 */
,
/* Start of <S52>/If Action Subsystem1 */
{
1.0 /* id_Value : '<S62>/0' */
}
/* End of <S52>/If Action Subsystem1 */
,
/* Start of <S52>/If Action Subsystem */
{
0.0 /* id_Value : '<S61>/0' */
}
/* End of <S52>/If Action Subsystem */
,
/* Start of <S51>/If Action Subsystem2 */
{
-10.0 , /* b_Value : '<S59>/b' */
15.0 /* c_Value : '<S59>/c' */
}
/* End of <S51>/If Action Subsystem2 */
,
/* Start of <S51>/If Action Subsystem3 */
{
-35.0 , /* a_Value : '<S60>/a' */
-10.0 /* b_Value : '<S60>/b' */
}
/* End of <S51>/If Action Subsystem3 */
,
/* Start of <S51>/If Action Subsystem1 */
{
1.0 /* id_Value : '<S58>/0' */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -