ecmnet / MAVGCL

In-Flight Analysis for PX4
176 stars 68 forks source link

Plot shows average values instead of picks #90

Closed matanhavi closed 8 years ago

matanhavi commented 8 years ago

Many times the user want to see the picks of some values instead of the average when the plot is zoomed out. Add on option to show plot either on average/picks mode

ecmnet commented 8 years ago

Could you Share an example via uploaded log?

ecmnet commented 8 years ago

Datapoint are not averaged at all. If time resolution is lower than the acquisition rate of 50ms, a spike detector determines min/max. Refer to https://github.com/ecmnet/MAVGCL/blob/master/MAVGCL/src/com/comino/flight/widgets/charts/line/LineChartWidget.java#L681

matanhavi commented 8 years ago

for example, on some zoom you can see about 25.4 max current. image but when zooming in you can see the 30A max: image

ecmnet commented 8 years ago

@matanhavi Was that during online acquisition or while analyzing a log file? Could you please share the log via http://logs.uaventure.com?

matanhavi commented 8 years ago

This is during importing px4Log, sorry, I can't send logs