gpssim: cleaned up gpssim code

The gpssim code was named gps_sim vs being consistent with other
simulators (gpssim). It also used warnx and errx and had lots of
commeted out code.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-06-18 09:02:30 +02:00
committed by Lorenz Meier
parent f56990a9ec
commit 7734195242
5 changed files with 107 additions and 200 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ gyrosim start
accelsim start
barosim start
adcsim start
gps_sim start
gpssim start
commander start
sensors start
ekf_att_pos_estimator start
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -35,7 +35,7 @@
# Simulated GPS driver
#
MODULE_COMMAND = gps_sim
MODULE_COMMAND = gpssim
SRCS = gpssim.cpp
@@ -76,14 +76,12 @@ UBX::UBX(const int &fd, struct vehicle_gps_position_s *gps_position, struct sate
_gps_position(gps_position),
_satellite_info(satellite_info),
{
}
UBX::~UBX()
{
}
int UBX_SIM::configure(unsigned &baudrate)
{
return 0;
@@ -92,7 +90,7 @@ int UBX_SIM::configure(unsigned &baudrate)
int // -1 = error, 0 = no message handled, 1 = message handled, 2 = sat info message handled
UBX_SIM::receive(const unsigned timeout)
{
/* copy data from simulator here */
usleep(1000000);
return 1;
/* copy data from simulator here */
usleep(1000000);
return 1;
}
@@ -39,9 +39,6 @@
#ifndef UBX_SIM_H_
#define UBX_SIM_H_
class UBX_SIM
{
public:
@@ -51,9 +48,6 @@ public:
int configure(unsigned &baudrate);
private:
int _fd;
struct vehicle_gps_position_s *_gps_position;
struct satellite_info_s *_satellite_info;