inav icon indicating copy to clipboard operation
inav copied to clipboard

Failure to read parameter settings when pasting to CLI (SPRacing F3)

Open potater1 opened this issue 7 years ago • 12 comments

Current Behavior

When setting a parameter list in the configurator, a chunk of the input is skipped in some cases.

Steps to Reproduce

Paste this batch of parameters in the CLI:

set nav_fw_launch_thr = 1750
set nav_fw_bank_angle = 30
set fw_ff_roll = 75
set max_angle_inclination_rll = 600
set max_angle_inclination_pit = 600
set roll_rate = 30
set nav_fw_cruise_thr = 1500
set nav_fw_launch_thr = 1750
set nav_fw_bank_angle = 30
set fw_ff_roll = 75
set max_angle_inclination_rll = 600
set max_angle_inclination_pit = 600

First 3 parameters are set, the rest are skipped and it says:

# n_pit = 600
Unknown command, try 'help'

Parameters added to the end of the list are again recognized.

Additional context

  • This bug does not occur in 2.0.0, or even in commit 958b49f so it's quite recent
  • Occurs when using Configurator 2.1.3
  • In some cases the occurrence of this error isn't deterministic, but you get the exact same error most of the time. The number of lines dropped can vary by 1.
  • Serial baud rate doesn't affect this bug.
  • Inserting 2 or more consecutive empty lines in the part of the list that gets skipped seems to help: every line is read correctly.

  • FC Board name and vendor: SPRacing F3
  • INAV version string: INAV/SPRACINGF3 2.1.0 Mar 2 2019 / 18:54:45 (65b0ec142) GCC-7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]

potater1 avatar Mar 02 '19 18:03 potater1

Doesn't happen with Omnibus F4

INAV/OMNIBUSF4 2.1.0 Mar 3 2019 / 19:52:00 (be30c4dd7) GCC-7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]

potater1 avatar Mar 03 '19 18:03 potater1

Please try to reproduce with configurator version 2.1.4

shellixyz avatar Mar 03 '19 18:03 shellixyz

I reproduce this in inav-conf 2.1.4

hali9 avatar Mar 04 '19 13:03 hali9

looks like we have to make Configurator slower again.

DzikuVx avatar Mar 11 '19 09:03 DzikuVx

This sucks it is already pretty slow

shellixyz avatar Mar 11 '19 15:03 shellixyz

The option is to make it slower only for the boards without VCP as it looks like only they are affected

DzikuVx avatar Mar 11 '19 15:03 DzikuVx

F3 boards are also very slow to connect to, it takes quite a bit when pressing connect on the configurator.

giacomo892 avatar Mar 11 '19 16:03 giacomo892

@giacomo892 I didn't notice the issue on the Omnibus F3 board I'm doing testing/dev on

shellixyz avatar Mar 11 '19 16:03 shellixyz

@shellixyz odd, I use OMNIBUS too and it is slow to load

giacomo892 avatar Mar 11 '19 17:03 giacomo892

Definitely not a problem on Linux. Connecting to Omnibus F3 on Linux: https://youtu.be/0HQwSPDWxjs

shellixyz avatar Mar 11 '19 17:03 shellixyz

This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.

stale[bot] avatar May 10 '19 18:05 stale[bot]

Automatically closing as inactive.

stale[bot] avatar May 24 '19 19:05 stale[bot]