openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
514 B

#pragma once
#include <QComboBox>
#include <QDialog>
#include <QLineEdit>
#include <QTableWidget>
class FindSimilarBitsDlg : public QDialog {
public:
FindSimilarBitsDlg(QWidget *parent);
private:
struct mismatched_struct {
uint32_t address, byte_idx, bit_idx, mismatches, total, perc;
};
QList<mismatched_struct> calcBits(uint8_t bus, int bit_to_find, int min_msgs_cnt);
void find();
QTableWidget *table;
QComboBox *bus_combo, *bit_combo;
QPushButton *search_btn;
QLineEdit *min_msgs;
};