Skip to content

Commit

Permalink
Change file names
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilritz authored and bresch committed Dec 16, 2019
1 parent 2d2edd9 commit b9dd1e5
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 15 deletions.
12 changes: 6 additions & 6 deletions test/SensorSimulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@


set(SRCS
SensorSimulator.cpp
Sensor.cpp
Imu.cpp
Mag.cpp
Baro.cpp
Gps.cpp
sensor_simulator.cpp
sensor.cpp
imu.cpp
mag.cpp
baro.cpp
gps.cpp
)

add_library(SENSOR_SIMULATOR ${SRCS})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "Baro.h"

namespace sensor_simulator::sensor
{

Baro::Baro(Ekf* ekf):Sensor(ekf)
{
}
Expand Down
6 changes: 5 additions & 1 deletion test/SensorSimulator/Baro.h → test/SensorSimulator/baro.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
*/
#pragma once

#include "Sensor.h"
#include "sensor.h"

namespace sensor_simulator::sensor
{

class Baro: public Sensor
{
Expand All @@ -54,3 +57,4 @@ class Baro: public Sensor

};

} // namespace sensor_simulator::sensor
5 changes: 5 additions & 0 deletions test/SensorSimulator/Gps.cpp → test/SensorSimulator/gps.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "Gps.h"

namespace sensor_simulator::sensor
{

Gps::Gps(Ekf* ekf):Sensor(ekf)
{
}
Expand All @@ -18,3 +21,5 @@ void Gps::setData(gps_message gps)
{
_gps_data = gps;
}

} // namespace sensor_simulator::sensor
6 changes: 5 additions & 1 deletion test/SensorSimulator/Gps.h → test/SensorSimulator/gps.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
*/
#pragma once

#include "Sensor.h"
#include "sensor.h"

namespace sensor_simulator::sensor
{

class Gps: public Sensor
{
Expand All @@ -54,3 +57,4 @@ class Gps: public Sensor

};

} // namespace sensor_simulator::sensor
5 changes: 5 additions & 0 deletions test/SensorSimulator/Imu.cpp → test/SensorSimulator/imu.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "Imu.h"

namespace sensor_simulator::sensor
{

Imu::Imu(Ekf* ekf):Sensor(ekf)
{
}
Expand Down Expand Up @@ -37,3 +40,5 @@ void Imu::setGyroData(Vector3f gyro)
{
_gyro_data = gyro;
}

} // namespace sensor_simulator::sensor
6 changes: 5 additions & 1 deletion test/SensorSimulator/Imu.h → test/SensorSimulator/imu.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
*/
#pragma once

#include "Sensor.h"
#include "sensor.h"

namespace sensor_simulator::sensor
{

class Imu: public Sensor
{
Expand All @@ -57,3 +60,4 @@ class Imu: public Sensor

};

} // namespace sensor_simulator::sensor
5 changes: 5 additions & 0 deletions test/SensorSimulator/Mag.cpp → test/SensorSimulator/mag.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "Mag.h"

namespace sensor_simulator::sensor
{

Mag::Mag(Ekf* ekf):Sensor(ekf)
{
}
Expand All @@ -20,3 +23,5 @@ void Mag::setData(Vector3f mag)
{
_mag_data = mag;
}

} // namespace sensor_simulator::sensor
6 changes: 5 additions & 1 deletion test/SensorSimulator/Mag.h → test/SensorSimulator/mag.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
*/
#pragma once

#include "Sensor.h"
#include "sensor.h"

namespace sensor_simulator::sensor
{

class Mag: public Sensor
{
Expand All @@ -54,3 +57,4 @@ class Mag: public Sensor

};

} // namespace sensor_simulator::sensor
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include "Sensor.h"
#include "sensor.h"

namespace sensor_simulator
{

Sensor::Sensor(Ekf* ekf)
{
Expand Down Expand Up @@ -26,3 +29,5 @@ bool Sensor::is_time_to_send(uint32_t time)
{
return (time >= _time_last_data_sent) && ((time - _time_last_data_sent) >= _update_period);
}

} // namespace sensor_simulator
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#include "EKF/ekf.h"
#include <math.h>

namespace sensor_simulator
{

class Sensor
{
public:
Expand Down Expand Up @@ -76,3 +79,5 @@ class Sensor
virtual void send(uint32_t time) = 0;

};

} // namespace sensor_simulator
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@

#pragma once

#include "Imu.h"
#include "Mag.h"
#include "Baro.h"
#include "Gps.h"
#include "imu.h"
#include "mag.h"
#include "baro.h"
#include "gps.h"
#include "EKF/ekf.h"


Expand Down

0 comments on commit b9dd1e5

Please sign in to comment.