mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 12:33:34 +08:00
fixed hardfault from tiny stack, TESTING CODE
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user