-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: The logical indices contain a true value outside of the array bounds. #28598
Comments
@fbredeme can you take a look please. |
Anyone? |
Hi @Husseinhajjsleiman, what copter version are you using and what is the sample time of the BAT data? |
Thank you for reaching back. I am using this ArduCopter V4.5.6 (7ce11b4) and its the bdshot version. I think its around 25 Hz but please double check after me. You can find the bin file in the link i shared in my first post. Note that I am using PM02D Holybro power module to measure battery params. |
any ideas why the error is occurring when Battery data getting resampled? I was debugging and I knew the error was occurring on battery logs. @fbredeme |
@Husseinhajjsleiman I need to set up Matlab again to check your bin file and how the code is handling it. I will reach back to you as soon as I managed to do so. |
Okay, thanks alot for reaching back. One question about sample rate: is there a way to increase the sample rate of the data flash logs? I am trying to impact the sample rate of position, velocities, gyros, imu and rpms - esc telem. Obviously they're from different sources and i am not sure if the attitudes are estimated. But i was wondering if you have an idea about increasing the sampling rate for those data sources? similar effect when sysid mode is activated and the data is sampled to 400 Hz. Any ideas are highly appreciated. I am looking forward to your comment about the error Im facing. Thanks. |
Hi, any updates about this issue @fbredeme ? |
I have fixed the issue. Thank you. |
Hi I'm also facing the smiler error can you share how you slove it? |
Honestly i thought that I fixed it but it worked with one case and I don't know why it worked with this one specific case. The person who implemented it must correct it as it is published in arducopter latest release. For some reason this is not clarified and no one is answering anymore. I am working on something else now but i will get back into it soon |
ardupilot/Tools/simulink/arducopter/functions/resampleLog.m
Line 76 in 3bc0207
Hi,
I am using this bin file for testing the simulink model. I am aware that this model is built for system identification mode however, I noticed that the code is capable of also handling different modes by simply selecting the subflight that I am interested in.
Once the code start to resample the data (specifically when it reaches to BAT struct in logResampled) an error occurs showing the following:
The logical indices contain a true value outside of the array bounds.
Error in resampleLog (line 76)
timePlaus = plausibilizeTime(log.(prop).TimeS(idxVec));
Error in sid_pre (line 429)
sidLogs(numOldSubflights + i).data = resampleLog(log, true, 'linear');
Is this error caused by the log bitmask? I have it set to 2242559
Thank you.
The text was updated successfully, but these errors were encountered: