Comments (3)
Attached the snapshot form INAV configurator and the script...
from yamspy.
INAV seems to be saying your FC is in FAILSAFE mode according to the screenshot from simpleUI. Try to investigate why it would be entering FAILSAFE mode.
The simpleUI.py sends commands (AETR...) in this order CMDS_ORDER = ['roll', 'pitch', 'throttle', 'yaw', 'aux1', 'aux2']
, therefore you did it correctly by using CH5 and CH6 (the names inside simpleUI don't really matter, just the order it sends at the end). When you asks it to send the arm command it sends CMDS['aux1'] = 1800
and 1000 for disarm (yours starts at 1800). The flight mode it selects like this:
elif char == ord('m') or char == ord('M'):
if CMDS['aux2'] <= 1300:
cursor_msg = 'Horizon Mode...'
CMDS['aux2'] = 1500
elif 1700 > CMDS['aux2'] > 1300:
cursor_msg = 'Flip Mode...'
CMDS['aux2'] = 2000
elif CMDS['aux2'] >= 1700:
cursor_msg = 'Angle Mode...'
CMDS['aux2'] = 1000
Maybe this is the reason for the FAILSAFE, but it could be something else. When everything is running normally, simpleUI should not show FAILSAFE for the flight mode.
from yamspy.
Thank you Ricardo, it was the commands order (AETR) mismatch.
Best,
John
from yamspy.
Related Issues (20)
- Angle mode HOT 39
- Change PS4 joystick example code to use curses
- Allow to change the gains/values from analog sticks in the PS4 joystick example code
- Omnibus F4 V3 connection with Raspberry pi4 by using MSP HOT 7
- Example code working on Linux but not working on Windows Pycharm HOT 2
- Documentation missing HOT 1
- Error sending data and receiving imu data HOT 26
- work without a loop HOT 14
- MSP over UART (Pins) HOT 3
- AssertionError: There's something wrong with the serial connection... check the logfile! HOT 10
- communication with INAV HOT 7
- Joystick Event Values Problem HOT 2
- Issues with arming using custom code HOT 2
- Sending GPS to the FC HOT 9
- Add type hints and test mypyc
- Switch between RC and MSP drone contrling on flight HOT 3
- How to communicate with FC fast? HOT 5
- Altitude reading HOT 3
- The code works correctly or not on my microcontroller F411 NOXE V3 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yamspy.