Skip to content

Commit

Permalink
Added ability to not link with FATFS
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Jan 29, 2017
1 parent 7677433 commit 5de2c23
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ else()
message(FATAL_ERROR "Platform not supported")
endif ()

if (SPALAX_BUILD_FIRMWARE)
if (BUILD_FATFS)
add_subdirectory(external/fatfs-cmake)
endif()

Expand Down
2 changes: 2 additions & 0 deletions cmake/m3imu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ include(gcc_stm32)

set(BUILD_SHARED_LIBS OFF)

set(BUILD_FATFS OFF)

ADD_DEFINITIONS(-DCORTEX_USE_FPU=TRUE)
1 change: 1 addition & 0 deletions cmake/spalax.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ set(STM32_CHIP "STM32F407VG")
include(gcc_stm32)

set(BUILD_SHARED_LIBS OFF)
set(BUILD_FATFS ON)

ADD_DEFINITIONS(-DCORTEX_USE_FPU=TRUE)
2 changes: 1 addition & 1 deletion external/cusf-messaging
Submodule cusf-messaging updated 1 files
+8 −6 CMakeLists.txt
2 changes: 2 additions & 0 deletions firmware/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ int main(void) {

chThdCreateStatic(waBadThing, sizeof(waBadThing), NORMALPRIO, bthandler_thread, NULL);

#if FILE_TELEMETRY_OUTPUT_ENABLED
if (config->has_sdcard)
file_telemetry_output_start("log.m3tel", false);
#endif

if (config->has_ms5611)
chThdCreateStatic(waMS5611, sizeof(waMS5611), NORMALPRIO, ms5611_thread, NULL);
Expand Down
4 changes: 3 additions & 1 deletion shared/src/state/quest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ bool try_estimate(const Eigen::Vector3f& v1, const Eigen::Vector3f& v2, const Ei
return true;
}

// Based on paper at - http://arc.aiaa.org/doi/pdf/10.2514/3.19717
// Based on papers at -
// http://arc.aiaa.org/doi/pdf/10.2514/3.19717
// http://malcolmdshuster.com/FC_MarkleyMortari_Girdwood_1999_AAS.pdf
int quest_estimate(const float observations[2][3], const float references[2][3], const float a[2], float *q_out) {
Eigen::Vector3f v1(references[0][0], references[0][1], references[0][2]);
Eigen::Vector3f v2(references[1][0], references[1][1], references[1][2]);
Expand Down

0 comments on commit 5de2c23

Please sign in to comment.