zexinliao / opentx

Automatically exported from code.google.com/p/opentx
0 stars 0 forks source link

Custom Function "Safety CHX" does not work as expected on INVerted channels. #125

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which board (stock / gruvin9x / sky9x / Taranis) are you using?

stock (Turnigy 9XR with ATmega 128; BOARD_M128)

What is your openTx FW version?

opentx-9xr128-heli-templates-nosplash-battgraph-thrtrace-en @ r2688

What is your openTx EEPROM version?

215

What steps will reproduce the problem?
(0. Dismount propeller, as engine will spin shen not expected to do so.)
1. Create CH3 (throttle) in mixer's screen and set it to INVerted in next 
screen.
2. Create sticky throttle cut:
2.a) Go to Customs Functions and set:
2.b) Switch: THR,
2.c) Function: Safety CH3,
2.d) Param: -100,
2.e) Enabled: ON.
3. Switch THR.

What is the expected output? What do you see instead?

Expected: engine is stopped.
Actual: engine runs at full throttle.

Please provide any additional information below.

To make this works as expected I had to set (2.d) param to 100 which seems to 
be a bit odd.

Original issue reported on code.google.com by krzyszto...@gmail.com on 23 Aug 2013 at 11:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I just checked the code, and the INVERT parameter of the LIMITS/SERVOS/OUTPUTS 
screen is not taken into account when a SafetyCH function is called. Which 
seems good. What is the issue?

Original comment by bson...@gmail.com on 26 Aug 2013 at 11:22

GoogleCodeExporter commented 8 years ago

Original comment by bson...@gmail.com on 27 Aug 2013 at 7:24