1. modify asotr_csv parser: ASOTR csv files are being supplemented if new data appears. 2. Fix bug in MUP command data parser - now all commands in MUP are decoded.

This commit is contained in:
Danila Gamkov
2025-10-16 11:23:56 +03:00
parent d91039ca21
commit 4968d17d5f
12 changed files with 569 additions and 108 deletions

View File

@@ -24,7 +24,7 @@ fname_pow = 'asotr' + asotr_kit + '_data_P.csv'
pict_name = '../plots/' + 'ASOTR' + asotr_kit + '_flight_T_P_all'
ox_dtime_format = '%Y.%m.%d'
legend=['БРД1', 'БРД2', 'БРД3', 'БРД4', 'плита МУП МВН, датчик1', 'плита МУП МВН, датчик 2']
legend=['BRD1', 'BRD2', 'BRD3', 'BRD4', 'плита МУП МВН, датчик1', 'плита МУП МВН, датчик 2']
width=[1, 2, 1, 1, 1, 1]
marker = ['-', '--', '-', '-', '-.', '-'];
@@ -61,7 +61,7 @@ len_ = min(len_data)
if xborders == False:
begin = 0
end = len_ - 1
end = 320000
@@ -76,8 +76,8 @@ if plot_windows == 1:
ax.tick_params(axis="both", width=1, labelsize=font)
ax.grid(visible=True, linestyle = 'dotted')
ax.set_ylabel(r"Температура, $^\circ$C", fontsize=font)
ax.set_xlabel('Время', fontsize=font)
ax.set_ylabel(r"Temperature, $^\circ$C", fontsize=font)
ax.set_xlabel('Date', fontsize=font)
ax.legend(fontsize=font)
date_formatter = dates.DateFormatter(ox_dtime_format)
@@ -100,8 +100,8 @@ elif plot_windows == 2:
i += 1
ax3 = ax1.twinx()
ax3.plot(data_b['timestamp'][0:3400], data_b['beta_angle'][0:3400], marker[1], color='r', linewidth=width[1], label='угол Бета')
ax3.set_ylabel('Угол Бета', fontsize=font)
ax3.plot(data_b['timestamp'][0:3400], data_b['beta_angle'][0:3400], marker[1], color='r', linewidth=width[1], label='Beta angle')
ax3.set_ylabel('Beta angle', fontsize=font)
ax3.tick_params(axis="y", width=1, labelsize=font)
ax3.legend(fontsize=font, loc='upper right')
@@ -113,8 +113,8 @@ elif plot_windows == 2:
ax1.tick_params(axis="both", width=1, labelsize=font)
ax1.grid(visible=True, linestyle = 'dotted')
ax1.set_ylabel(r"Температура, $^\circ$C", fontsize=font)
ax1.set_xlabel('Время', fontsize=font)
ax1.set_ylabel(r"Temperature, $^\circ$C", fontsize=font)
ax1.set_xlabel('Date', fontsize=font)
ax1.legend(fontsize=font, loc='lower right')
date_formatter = dates.DateFormatter(ox_dtime_format)
@@ -129,7 +129,8 @@ elif plot_windows == 2:
# date_formatter = dates.DateFormatter(ox_dtime_format)
# ax2.xaxis.set_major_formatter(date_formatter)
plt.title('АСОТР ' + asotr_kit, fontsize=font)
# plt.title('automatic thermal control system ' + asotr_kit, fontsize=font)
# plt.title('Automated ' + asotr_kit, fontsize=font)
plt.tight_layout()
fig.savefig(pict_name)
plt.show()