Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
759715d5
Commit
759715d5
authored
Feb 11, 2011
by
Alejandro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on UASUnitTest
parent
dffc01d6
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1233 additions
and
1865 deletions
+1233
-1865
SlugsMavUnitTest.cc
qgcunittest/SlugsMavUnitTest.cc
+23
-20
SlugsMavUnitTest.h
qgcunittest/SlugsMavUnitTest.h
+32
-27
UASUnitTest.cc
qgcunittest/UASUnitTest.cc
+269
-156
UASUnitTest.h
qgcunittest/UASUnitTest.h
+64
-50
SlugsDataSensorView.ui
src/ui/SlugsDataSensorView.ui
+845
-1612
No files found.
qgcunittest/SlugsMavUnitTest.cc
View file @
759715d5
#include "SlugsMavUnitTest.h"
SlugsMavUnitTest
::
SlugsMavUnitTest
()
{
}
void
SlugsMavUnitTest
::
initTestCase
()
{
}
void
SlugsMavUnitTest
::
cleanupTestCase
()
{
}
void
SlugsMavUnitTest
::
first_test
()
{
QCOMPARE
(
1
,
2
);
}
#include "SlugsMavUnitTest.h"
SlugsMavUnitTest
::
SlugsMavUnitTest
()
{
}
void
SlugsMavUnitTest
::
initTestCase
()
{
mav
=
new
MAVLinkProtocol
();
slugsMav
=
new
SlugsMAV
(
mav
,
UASID
);
}
void
SlugsMavUnitTest
::
cleanupTestCase
()
{
delete
slugsMav
;
delete
mav
;
}
void
SlugsMavUnitTest
::
first_test
()
{
QCOMPARE
(
1
,
1
);
}
qgcunittest/SlugsMavUnitTest.h
View file @
759715d5
#ifndef SLUGSMAVUNITTEST_H
#define SLUGSMAVUNITTEST_H
#include <QObject>
#include <QtCore/QString>
#include <QtTest/QtTest>
#include "UAS.h"
#include "MAVLinkProtocol.h"
#include "UASInterface.h"
#include "AutoTest.h"
class
SlugsMavUnitTest
:
public
QObject
{
Q_OBJECT
public:
SlugsMavUnitTest
();
signals:
private
slots
:
void
initTestCase
();
void
cleanupTestCase
();
void
first_test
();
};
DECLARE_TEST
(
SlugsMavUnitTest
)
#endif // SLUGSMAVUNITTEST_H
#ifndef SLUGSMAVUNITTEST_H
#define SLUGSMAVUNITTEST_H
#include <QObject>
#include <QtCore/QString>
#include <QtTest/QtTest>
#include "UAS.h"
#include "MAVLinkProtocol.h"
#include "UASInterface.h"
#include "AutoTest.h"
#include "SlugsMAV.h"
class
SlugsMavUnitTest
:
public
QObject
{
Q_OBJECT
public:
#define UASID 5
MAVLinkProtocol
*
mav
;
SlugsMAV
*
slugsMav
;
SlugsMavUnitTest
();
signals:
private
slots
:
void
initTestCase
();
void
cleanupTestCase
();
void
first_test
();
};
DECLARE_TEST
(
SlugsMavUnitTest
)
#endif // SLUGSMAVUNITTEST_H
qgcunittest/UASUnitTest.cc
View file @
759715d5
This diff is collapsed.
Click to expand it.
qgcunittest/UASUnitTest.h
View file @
759715d5
#ifndef UASUNITTEST_H
#define UASUNITTEST_H
#include <QObject>
#include <QtCore/QString>
#include <QtTest/QtTest>
#include "UAS.h"
#include "MAVLinkProtocol.h"
#include "UASInterface.h"
#include "AutoTest.h"
class
UASUnitTest
:
public
QObject
{
Q_OBJECT
public:
#define UASID 50
MAVLinkProtocol
*
mav
;
UAS
*
uas
;
UASUnitTest
();
signals:
private
slots
:
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
();
protected:
UAS
*
prueba
;
};
DECLARE_TEST
(
UASUnitTest
)
#endif // UASUNITTEST_H
#ifndef UASUNITTEST_H
#define UASUNITTEST_H
#include <QObject>
#include <QtCore/QString>
#include <QtTest/QtTest>
#include <QApplication>
#include "UAS.h"
#include "MAVLinkProtocol.h"
#include "UASInterface.h"
#include "AutoTest.h"
#include "LinkManager.h"
class
UASUnitTest
:
public
QObject
{
Q_OBJECT
public:
#define UASID 50
MAVLinkProtocol
*
mav
;
UAS
*
uas
;
UASUnitTest
();
signals:
private
slots
:
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
getSelected_test
();
void
getSystemType_test
();
void
getAirframe_test
();
void
getLinks_test
();
void
getWaypointList_test
();
void
battery_test
();
protected:
UAS
*
prueba
;
};
DECLARE_TEST
(
UASUnitTest
)
#endif // UASUNITTEST_H
src/ui/SlugsDataSensorView.ui
View file @
759715d5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment