Still getting good data to Master serial terminal (com14 for me), nothing to slave terminal (com4 for me). Got to go run some errands, but when I get back I think I'll fall back and make sure I can get the SPI_Transfer sample example running...
slave must be running slave.events() in loop too
void loop() {
slave.events();
}
Loop#:26698 IMU#:0
#1 @18:15.4_306320 [fix:3 #:7
WARNING: Apparent loss of IMU data !!
#2 @18:15.4_200306451 [fix:3 #:7
#3 @18:15.4_400306582 [fix:3 #:7
#4 @18:15.4_600306713 [fix:3 #:7
#5 @18:15.4_800306844 [fix:3 #:7
-----Loop#:287732 IMU#:51
#6 @18:15.5_306974 [fix:3 #:7
#7 @18:15.5_200307105 [fix:3 #:7
#8 @18:15.5_400307236 [fix:3 #:7
#9 @18:15.5_600307367 [fix:3 #:7
#10 @18:15.5_800307498 [fix:3 #:7
-----Loop#:300557 IMU#:51
#11 @18:15.6_307628 [fix:3 #:7
#12 @18:15.6_200307759 [fix:3 #:7
#13 @18:15.6_400307890 [fix:3 #:7
#14 @18:15.6_600308021 [fix:3 #:7
#15 @18:15.6_800308151 [fix:3 #:7
-----Loop#:288906 IMU#:49
#16 @18:15.7_308282 [fix:3 #:7
#17 @18:15.7_200308413 [fix:3 #:7
Re. That's what I thought on the slave.events, I confuse easy
Part of the problem was the aHRS.events. I put it back but wrapped it in a 100ms timer, and it was causing havoc. Removed it and it started working. Syptoms - too much data.
Tim, as to your question, here is what I get right after startup:
Code:Loop#:26698 IMU#:0 #1 @18:15.4_306320 [fix:3 #:7 WARNING: Apparent loss of IMU data !! #2 @18:15.4_200306451 [fix:3 #:7
"would be nice if you can get the 3.4 MHz i2c working" - have new MPU-9250's coming in today, I hope. Will use a new one, just in case.
if you put the slave.events in a 100 timer and your hammering f&f’s at ~49uS i can see why youd have a problem
a limiter by time or by counter?
" 'else' case for 'if (uBloxData.numSV > 5) {" - waiting for Don to get back on KF not updating for no GPS available - it should as was mentioned in a bunch of posts ago. Yep - not so much worried about the imu data. More concerned on GPS data not available. Think I am going to go back and change to test fix >=3. As long as you have a fix proceed).
BTW. running i2c at 1Mhz, all proceeding normally so far. Already tested at 3.4M using just a simple sketch to access the IMU and was getting a check wiring errors - 3 one time 5 another time. 400k is giving me a problem for some reason.
void runFilter() {
newIMUData = 1;
}
yup, prolly do events as an overloaded method with a default time so events() or events(val) could be called
for a user to pass in yeah but if the pattern of the protocol is not in the array dataset, it wont be known to the library and a crash would probably occur
non-debug output?
static uint32_t LastTime = 0;
if ( millis()-LastTime [COLOR="#FF0000"]> [/COLOR]MinTime ) return 0;
LastTime = millis(); // [COLOR="#FF0000"]<-- this never runs?[/COLOR]
static uint32_t LastTime = 0;
if ( millis()-LastTime [COLOR="#FF0000"]<[/COLOR] MinTime ) return 0;
LastTime = millis();