When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
7 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
Anyone can ask a question in our programming channels. Following the guide Writing The Perfect Question is recommended.
State your problem clearly and provide all necessary details:
Provide the relevant code in the message, and format it nicely with a code block*. If it's too much for one message, you can upload it:
@split mango
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.
```cpp
int main() {}
```
int main() {} ```
void ccdcfcalc(const double accelData[800],const double timeData[800],
double *ccd, double *cf)
{
static const double a[5] = {1.0, -3.9753719125609197, 5.9264185559654212,
-3.9267191977567824, 0.97567256214608411};
static const double b[5] = {0.98776138927682544, -3.9510455571073018,
5.9265683356609529, -3.9510455571073018,
0.98776138927682544};
double a__1_data[800];
double b_time[800];
double locs_data[800];
double s[800];
double v[800];
double y[800];
double distance_data[400];
double b_y;
int a__1_size[2];
int a__2_size[2];
int locs_size[2];
int b_i;
int c_i;
int i;
int x;
if (!isInitialized_ccdcfcalc) {
ccdcfcalc_initialize();
}
/* Bandpass function() */
/* misto hp bw4o */
/* cutoff frequency */
/* sampling frequency */
/* filter order */
/* calculate the filter coefficients using the butter function */
for (i = 0; i < 800; i++) {
b_time[i] = (timeData[i] - timeData[0]) / 1000.0;
v[i] = 9.8 * accelData[i];
}```
Hello! I'm working on a project for meassuring distance from accelerometer using ESP32. After I collect 800 timeData and accelData, my code proceeds to this function mentioned above. After some time there is a problem inside for (i = 0; i < 800; i++) { and I hit trace/breakpoint. The error message says:
Thread
1 "loopTask" received signal SIGTRAP, Trace/breakpoint trap.
_DoubleExceptionVector () at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/xtensa_vectors.S:461
461 /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/xtensa_vectors.S: No such file or directory.```