UASUnitTest.h 1.42 KB
Newer Older
1 2 3 4 5
#ifndef UASUNITTEST_H
#define UASUNITTEST_H

#include "UAS.h"
#include "MAVLinkProtocol.h"
6
#include "SerialLink.h"
7
#include "UASInterface.h"
Don Gagne's avatar
Don Gagne committed
8
#include "UnitTest.h"
9 10 11 12
#include "LinkManager.h"
#include "UASWaypointManager.h"
#include "SerialLink.h"
#include "LinkInterface.h"
13

Don Gagne's avatar
Don Gagne committed
14 15 16
#define  UASID  100

class UASUnitTest : public UnitTest
17 18
{
    Q_OBJECT
Don Gagne's avatar
Don Gagne committed
19
    
20
public:
Don Gagne's avatar
Don Gagne committed
21
    UASUnitTest(void);
22 23

private slots:
Don Gagne's avatar
Don Gagne committed
24 25 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 52 53 54 55 56 57
    UT_DECLARE_DEFAULT_initTestCase
    UT_DECLARE_DEFAULT_cleanupTestCase
    void init(void);
    void cleanup(void);

    void getUASID_test(void);
    void getUASName_test(void);
    void getUpTime_test(void);
    void getCommunicationStatus_test(void);
    void filterVoltage_test(void);
    void getAutopilotType_test(void);
    void setAutopilotType_test(void);
    void getStatusForCode_test(void);
    void getLocalX_test(void);
    void getLocalY_test(void);
    void getLocalZ_test(void);
    void getLatitude_test(void);
    void getLongitude_test(void);
    void getAltitudeAMSL_test(void);
    void getAltitudeRelative_test(void);
    void getRoll_test(void);
    void getPitch_test(void);
    void getYaw_test(void);
    void getSelected_test(void);
    void getSystemType_test(void);
    void getAirframe_test(void);
    void setAirframe_test(void);
    void getWaypointList_test(void);
    void signalWayPoint_test(void);
    void getWaypoint_test(void);
    
private:
    MAVLinkProtocol*    _mavlink;
    UAS*                _uas;
58 59
};

Don Gagne's avatar
Don Gagne committed
60
#endif