UASUnitTest.h 1.29 KB
Newer Older
1 2 3 4 5 6 7 8
#ifndef UASUNITTEST_H
#define UASUNITTEST_H

#include <QObject>
#include <QtCore/QString>
#include <QtTest/QtTest>
#include "UAS.h"
#include "MAVLinkProtocol.h"
9
#include "SerialLink.h"
10 11 12 13 14 15 16
#include "UASInterface.h"
#include "AutoTest.h"

class UASUnitTest : public QObject
{
    Q_OBJECT
public:
17 18 19 20 21
#define  UASID  50
    MAVLinkProtocol* mav;
    UAS* uas;
    SerialLink* link;
    UASUnitTest();
22 23 24 25

signals:

private slots:
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
    void initTestCase();
    void cleanupTestCase();
    void getUASID_test();
    void getUASName_test();
    void getUpTime_test();
    void getCommunicationStatus_test();
    void filterVoltage_test();
    void getAutopilotType_test();
    void setAutopilotType_test();
    void getStatusForCode_test();
    void getLocalX_test();
    void getLocalY_test();
    void getLocalZ_test();
    void getLatitude_test();
    void getLongitude_test();
    void getAltitude_test();
    void getRoll_test();
    void getPitch_test();
    void getYaw_test();
    void attitudeLimitsZero_test();
    void attitudeLimitsPi_test();
    void attitudeLimitsMinusPi_test();
    void attitudeLimitsTwoPi_test();
    void attitudeLimitsMinusTwoPi_test();
    void attitudeLimitsTwoPiOne_test();
    void attitudeLimitsMinusTwoPiOne_test();
52 53

protected:
54
    UAS *prueba;
55 56 57 58 59

};

DECLARE_TEST(UASUnitTest)
#endif // UASUNITTEST_H