@@ -857,21 +857,24 @@ def generate_plots(ulog, px4_ulog, db_data, vehicle_data, link_to_3d_page,
857
857
y_start = 0 , title = 'Power' ,
858
858
plot_height = 'small' , changed_params = changed_params ,
859
859
x_range = x_range )
860
- data_plot .add_graph (['voltage_v' , 'voltage_filtered_v' ,
860
+ data_plot .add_graph (['voltage_v' ,
861
861
'current_a' , lambda data : ('discharged_mah' , data ['discharged_mah' ]/ 100 ),
862
862
lambda data : ('remaining' , data ['remaining' ]* 10 )],
863
- colors8 [:: 2 ] + colors8 [ 1 : 2 ],
864
- ['Battery Voltage [V]' , 'Battery Voltage filtered [V]' ,
863
+ colors8 [0 : 4 ],
864
+ ['Battery Voltage [V]' ,
865
865
'Battery Current [A]' , 'Discharged Amount [mAh / 100]' ,
866
866
'Battery remaining [0=empty, 10=full]' ])
867
+ data_plot .add_graph (['ocv_estimate' , lambda data : ('internal_resistance_estimate' ,
868
+ data ['internal_resistance_estimate' ]* 1000 )],
869
+ colors8 [4 :6 ], ['OCV Estimate [V]' , 'Internal Resistance Estimate [mOhm]' ])
867
870
data_plot .change_dataset ('system_power' )
868
871
if data_plot .dataset :
869
872
if 'voltage5v_v' in data_plot .dataset .data and \
870
873
np .amax (data_plot .dataset .data ['voltage5v_v' ]) > 0.0001 :
871
874
data_plot .add_graph (['voltage5v_v' ], colors8 [7 :8 ], ['5 V' ])
872
875
if 'sensors3v3[0]' in data_plot .dataset .data and \
873
876
np .amax (data_plot .dataset .data ['sensors3v3[0]' ]) > 0.0001 :
874
- data_plot .add_graph (['sensors3v3[0]' ], colors8 [5 : 6 ], ['3.3 V' ])
877
+ data_plot .add_graph (['sensors3v3[0]' ], colors8 [6 : 7 ], ['3.3 V' ])
875
878
if data_plot .finalize () is not None : plots .append (data_plot )
876
879
877
880
0 commit comments