Sparky 2 target?
Any plans for Sparky 2 support in the future? Sparky 1.0 already done.
@bazyl78 , it would certainly be possible to make a Sparky 2 target.
I have no Sparky 2 hardware myself, so would you be able to spend some time testing it?
I'm not very expierienced but can try.
You don't need to be a great pilot to test!
All we need you to do is build an aircraft with the Sparky2 FC and report back any problems so we can fix them.
You just need to do a bench test (no props), and if that works fine a flight test. And report back with any problems you have.
I'll start looking into making a Sparky 2 target.
@martinbudden I have a quad X 250 with sparky 2 and I can do some testing if you want. The problem is that I have spare time only in the week end.
That is great news cause I stoped using Sparky 2 because problems with navigation in dRonin. With inav it works for me out of the box on Naze32. If it starts working with Sparky 2 then perfect :). I will test when the new target is available.
@bazyl78, @anbello Please check out the RC5 - it has a very experimental SPARKY2 support (thanks to @martinbudden)
Thanks I will try as soon as possible, I hope tomorrow.
Let us know if you have any problems.
Note that the motor order is different between iNav and dRonin/LibrePilot. So you will have to either rewire your motors or create a custom mixer.
A little bit OT question: is there any way to translate the PID values from dRonin to iNav?
I'm afraid not, the core logic is very different, nobody ever did a mapping between OP/LP/dRonin PID controller and INAV
I flashed the RC5 on my Sparky 2 based quad, follow what I see:
- in the configurator top bar I have gyro and accel grayed and mag an baro blue
- in the sensor tab the only graph that react in the right way to moving the quad is gyro, accel and baro are fixed to 0 and mag is fixed to 0 with nearly periodic spike (see attached image)
- the receiver tab is OK (I use PPM and I see all bars move in the right way)
- the motors tab is OK (I can spin the motors with the sliders)
Let me know which kind of information I have to post, a dump from the cli or what else?

Status command from cli would probably be helpful.
status
System Uptime: 108 seconds, Voltage: 0 * 0.1V (3S battery - OK), System load: 0.00 CPU Clock=168MHz, GYRO=MPU9250, BARO=MS5611, MAG=MAG_AK8963 Cycle Time: 2000, I2C Errors: 0, config size: 1996
Looks like accelerometer is not detected for some reason. I wonder if there's a bug in MPU9250 init code that prevents the chip from initializing correctly. What we probably see on compass graph is a result of mag.read() returning false.
Baro is probably fine, it's the absence of accelerometer that causes the graph to stay at zero. In Configurator it's not really raw baro altitude, but a result of INAV position estimation filtering which will not work w/o accelerometer.
@anbello can you also post output of "bootlog" command?
bootlog
Time Evt Description Parameters 0: 0 CONFIG_LOADED 0: 1 SYSTEM_INIT_DONE 500: 18 TIMER_CHANNEL_MAPPED (0, 0, 0, 0) 500: 18 TIMER_CHANNEL_MAPPED (1, 1, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (2, 2, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (3, 3, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (4, 4, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (5, 5, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (6, 6, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (7, 7, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (8, 8, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (9, 9, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (10, 10, 0, 2) 500: 2 PWM_INIT_DONE 500: 3 EXTRA_BOOT_DELAY 1185: 9 GYRO_DETECTION (8, 0, 0, 0) 1237: 10 ACC_DETECTION (1, 0, 0, 0) 1250: 11 BARO_DETECTION (3, 0, 0, 0) 1291: 12 MAG_DETECTION (6, 0, 0, 0) 1374: 4 SENSOR_INIT_DONE 1924: 8 SYSTEM_READY
2016-09-03 12:02 GMT+02:00 Konstantin Sharlaimov [email protected]:
Looks like accelerometer is not detected for some reason. I wonder if there's a bug in MPU9250 init code that prevents the chip from initializing correctly. What we probably see on compass graph is a result of mag.read() returning false. Baro is probably fine, it's the absence of accelerometer that causes the graph to stay at zero. In Configurator it's not really raw baro altitude, but a result of INAV position estimation filtering which will not work w/o accelerometer.
@anbello https://github.com/anbello can you also post output of "bootlog" command?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/538#issuecomment-244538075, or mute the thread https://github.com/notifications/unsubscribe-auth/AEsTIubqG5hY6vTzJP0Ys30h79OA0hRwks5qmUW6gaJpZM4JxUQF .
Yes, looks like the accelerometer is not detected. A look at the code seems to indicate that the detection function is not being called. PR on the way.
@digitalentity PR https://github.com/iNavFlight/inav/pull/554 should fix this.
This new build seems to solve all problems in my list but the mag plot is still weird
status
System Uptime: 349 seconds, Voltage: 0 * 0.1V (3S battery - OK), System load: 0.00 CPU Clock=168MHz, GYRO=MPU9250, ACC=MPU9250, BARO=MS5611, MAG=MAG_AK8963 Cycle Time: 2001, I2C Errors: 0, config size: 1996
bootlog
Time Evt Description Parameters 0: 0 CONFIG_LOADED 0: 1 SYSTEM_INIT_DONE 500: 18 TIMER_CHANNEL_MAPPED (0, 0, 0, 0) 500: 18 TIMER_CHANNEL_MAPPED (1, 1, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (2, 2, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (3, 3, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (4, 4, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (5, 5, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (6, 6, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (7, 7, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (8, 8, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (9, 9, 0, 2) 500: 18 TIMER_CHANNEL_MAPPED (10, 10, 0, 2) 500: 2 PWM_INIT_DONE 500: 3 EXTRA_BOOT_DELAY 1185: 9 GYRO_DETECTION (8, 0, 0, 0) 1237: 10 ACC_DETECTION (9, 0, 0, 0) 1250: 11 BARO_DETECTION (3, 0, 0, 0) 1291: 12 MAG_DETECTION (6, 0, 0, 0) 1374: 4 SENSOR_INIT_DONE 1924: 8 SYSTEM_READY

@anbello , I think the SPARKY2 is the first flight controller that is using the compass in the MPU9250 chip, so this might take a little while to track down.
Can you use an external compass for the moment?
Also if you could test flight modes that don't need a compass, that would be useful as well.
@digitalentity , any thoughts about the compass?