FlySky-i6-Mod- icon indicating copy to clipboard operation
FlySky-i6-Mod- copied to clipboard

New timer Mod bug

Open Jahnkeanater opened this issue 9 years ago • 10 comments

The new timer will start randomly before the throttle is raised. Maybe make it stop counting when the throttle is lowered again or have it check that the throttle is raised for more then a split second. I think error in the throttle is triggering the timer.

Sometimes when the timer starts it will rapidly count up to 8 or 9 seconds.

Maybe a more convenient way to reset the timer from the main menu. The up down and cancel buttons don't do anything from the main screen so maybe a long press of the down to reset and a long press of the up to start/stop?

Jahnkeanater avatar Nov 21 '16 20:11 Jahnkeanater

@Jahnkeanater can you try to set start condition to 1200? Is the quick count triggered when leaving menu and start condition is true? I will add reset from main screen as well.

qba667 avatar Nov 27 '16 20:11 qba667

I have start set to 1500 and it still sometimes starts randomly. The quick count starts when raising the throttle past 1500. It only happens some of the time. I can't find a way to reproduce it. It must be when you raise the throttle at a certain point in the code. It only happens about 5% of the time.

Smacking the radio playing with switches and navigating the menus randomly I cannot get the timer to trigger.

Just letting the radio sit idle the timer starts. Typically 2 minutes after the screen goes dim.

Does your radio not do this? Maybe I should re-flash the firmware.

Jahnkeanater avatar Dec 06 '16 03:12 Jahnkeanater

Why are there 5 versions of the timer mod? Are you supposed to install both the 10 channel mod and the timer mod? Or is the timer mod supposed to be installed over original firmware?

Jahnkeanater avatar Dec 06 '16 04:12 Jahnkeanater

@Jahnkeanater I can imagine that there is some period causing this strange quick counting. I had to add double time compensation because using calculated tick resolution radio seems to be slowed down almost twice when calculating difference. It looks like they are number of interrupts slowing down main loop - main loop is controlling timer. I will try to add own interrupt for counting time - this should solve the issue. I will observe if timer starts automatic after some idle time - but it looks like you are getting invalid values for throttle. Does it happen when you assign SWA or other switch? Timer and telemetry mod is using as a base latest 10 channel mod. So just install the latest.

qba667 avatar Dec 06 '16 07:12 qba667

I normally have all the switches assigned to channels. On a fresh model with default aux channel assignment the timer still starts.

I reset the flash memory and re flashed to original and then the latest mod and I am still getting the same behavior.

Jahnkeanater avatar Dec 07 '16 01:12 Jahnkeanater

Do you have asm files for the i6? I have experience with the Motorola hcs12. Are the op codes the same for the freescale chip?

Jahnkeanater avatar Dec 08 '16 05:12 Jahnkeanater

The assembly language used for the MCU is ARM thumb - let say it is similar to hcs12. I will attach disassembly today evening. If you have some are debug tool I can tell you where to set breakpoint - otherwise we can add displaying of start conditions on main screen.

qba667 avatar Dec 08 '16 06:12 qba667

@Jahnkeanater
Check here: https://github.com/qba667/FlySkyI6

qba667 avatar Dec 09 '16 16:12 qba667

@Jahnkeanater I can reproduce the issue lately - I will check what is wrong.

qba667 avatar Jan 24 '17 20:01 qba667

@Jahnkeanater solved in last version published on rcgroups.

qba667 avatar Mar 22 '17 07:03 qba667