Skip to content

Commit

Permalink
Added some fixes to the Makefiles and setup.py as suggested by Сергей…
Browse files Browse the repository at this point in the history
… Тищенко
  • Loading branch information
jeff-loughlin committed Apr 7, 2018
1 parent 907330a commit b91b789
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Linux/RTIMULibCal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ DEPS = $(RTIMULIBPATH)/RTMath.h \
$(RTIMULIBPATH)/IMUDrivers/RTPressureBMP180.h \
$(RTIMULIBPATH)/IMUDrivers/RTPressureLPS25H.h \
$(RTIMULIBPATH)/IMUDrivers/RTPressureMS5611.h \
$(RTIMULIBPATH)/IMUDrivers/RTPressureMS5637.h
$(RTIMULIBPATH)/IMUDrivers/RTPressureMS5637.h \
$(RTIMULIBPATH)/IMUDrivers/RTIMUHMC5883LADXL345.h

OBJECTS = objects/RTIMULibCal.o \
objects/RTMath.o \
Expand All @@ -106,7 +107,8 @@ OBJECTS = objects/RTIMULibCal.o \
objects/RTPressureBMP180.o \
objects/RTPressureLPS25H.o \
objects/RTPressureMS5611.o \
objects/RTPressureMS5637.o
objects/RTPressureMS5637.o \
objects/RTIMUHMC5883LADXL345.o

MAKE_TARGET = RTIMULibCal
DESTDIR = Output/
Expand Down
1 change: 1 addition & 0 deletions Linux/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"IMUDrivers/RTHumidity.cpp",
"IMUDrivers/RTHumidityHTS221.cpp",
"IMUDrivers/RTHumidityHTU21D.cpp",
"IMUDrivers/RTIMUHMC5883LADXL345.cpp"
]
RTIMU_sourcedir = "../../RTIMULib"

Expand Down
6 changes: 3 additions & 3 deletions RTIMULib/IMUDrivers/RTIMUHMC5883LADXL345.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ bool RTIMU5883L::IMURead()
// Swap the axes to match the board
// Might have to change these depending on specific board layout
RTFLOAT temp;
temp = m_imuData.gyro.x();
m_imuData.gyro.setX(-m_imuData.gyro.y());
m_imuData.gyro.setY(-temp);
// temp = m_imuData.gyro.x();
// m_imuData.gyro.setX(-m_imuData.gyro.y());
// m_imuData.gyro.setY(-temp);

temp = m_imuData.accel.x();
m_imuData.accel.setX(m_imuData.accel.y());
Expand Down

0 comments on commit b91b789

Please sign in to comment.