fixed hardfault from tiny stack, TESTING CODE

This commit is contained in:
Marvin Harms
2022-09-05 21:56:12 +02:00
parent eaa0d8a4b8
commit 6358cb5059
2 changed files with 4 additions and 4 deletions
@@ -36,7 +36,7 @@
px4_add_module(
MODULE modules__fw_dyn_soar_estimator
MAIN fw_dyn_soar_estimator
STACK_MAIN 1024
STACK_MAIN 2048
SRCS
FixedwingShearEstimator.cpp
FixedwingShearEstimator.hpp
@@ -117,7 +117,9 @@ FixedwingShearEstimator::init()
// ==============================================================================
// fill the min airspeed matrix with the correct entries for trajectory selection
// ==============================================================================
bool error = false;
//char home_dir[200] = "/home/marvin/Documents/master_thesis_ADS/PX4/Git/ethzasl_fw_px4/src/modules/fw_dyn_soar_control/trajectories/";
char home_dir[200] = PX4_ROOTFSDIR"/fs/microsd/trajectories/";
strcat(home_dir, "robust/min_aspd_matrix.csv");
@@ -130,12 +132,11 @@ FixedwingShearEstimator::init()
else {
// Here we have taken size of
// array 200 you can modify it
const uint buffersize = 200;
const uint buffersize = 600;
char buffer[buffersize];
int row = 0;
int column = 0;
// loop over rows
while (fgets(buffer,
buffersize, fp)) {
@@ -171,7 +172,6 @@ FixedwingShearEstimator::init()
}
// =======================================================================
if (error) {
/*
// column 0: wind speed = 8