koenkooi / multiwii-firmware

Firmware - GitHub mirror of the official SVN multiwii project
https://github.com/multiwii/multiwii-firmware/wiki
13 stars 1 forks source link

When Disarming everything goes wild #11

Open gromain opened 10 years ago

gromain commented 10 years ago

Like it's trying to change its position in space, but that leads to a crash. Could be related to c04c2c5c6f6c04bb75727d6aaa13b0919ab3bde5 .

koenkooi commented 10 years ago

I've received my hex and quad and I don't see this problem after fixing the RC protocol: 4a019b124a8d52c96f8a955f35d06033902563dd

koenkooi commented 10 years ago

I do see something like this when bluetooth suddenly disconnects or when the app closes.

Arne-W commented 10 years ago

Could be related to #16. If the App disconnects the counter runs out and the input values default to 1500. This behaviour could be a problem if enabling failsafe option too.

koenkooi commented 10 years ago

Should we adjust the failsafe timeout to be close to the rcserialcount duration?

Arne-W commented 10 years ago

First we should do some testing. At the moment failsafe mode ist disabled. It could be useful to monitor the rcserialcount and the failsafeCount through the debug values in MultiiWiiConfig.

But take a look @ https://github.com/koenkooi/multiwii-firmware/blob/pruts/RX.cpp#L444 it seems like failsafeCnt is always set to 0 while rcserialcount is > 0. It seems like rcserialcount disables failsafe mode until it is 0.