ardupilot/Tools/Replay/LogReader.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
969 B
C
Raw Permalink Normal View History

#pragma once
2015-06-29 02:59:53 -03:00
#include "VehicleType.h"
2019-01-18 02:18:52 -04:00
#include "DataFlashFileReader.h"
2015-06-29 02:59:53 -03:00
#include "LR_MsgHandler.h"
2016-05-25 07:46:18 -03:00
#include "Parameters.h"
class LogReader : public AP_LoggerFileReader
{
public:
LogReader(struct LogStructure *log_structure, NavEKF2 &_ekf, NavEKF3 &_ekf3);
2014-01-05 01:37:47 -04:00
VehicleType::vehicle_type vehicle;
2020-11-08 22:06:04 -04:00
static bool check_user_param(const char *name);
static bool set_parameter(const char *name, float value, bool force=false);
bool handle_log_format_msg(const struct log_Format &f) override;
bool handle_msg(const struct log_Format &f, uint8_t *msg) override;
2015-07-07 02:13:51 -03:00
static bool in_list(const char *type, const char *list[]);
protected:
private:
NavEKF2 &ekf2;
NavEKF3 &ekf3;
struct LogStructure *_log_structure;
uint8_t _log_structure_count;
class LR_MsgHandler *msgparser[LOGREADER_MAX_FORMATS] {};
};
2016-05-16 04:21:52 -03:00
// some vars are difficult to get through the layers
struct globals {
bool no_params;
};
extern struct globals globals;