Comments (17)
oh yes - here's some likely theories:
- For safety the default behavior for the code is that guided mode (used for follow me) will not cause the copter to take off. You need to launch the vehicle using either an RC or the rc_overrides to fake lifting the throttle from 0. (The latest master - soon to be released arducopter build makes this protection optional if you you send takeoff waypoints)
- If you are using a px4 you'll also need to press the safety button at least once after boot so the LED stops blinking.
- Have you tried just launching the vehicle (say in LOITER) to confirm all is well? If the vehicle is flying already in any mode, the follow me should work well.
from dronekit-python.
You were right! Arm and channel override ran it!
Curious enough after attempting to takeoff/goto set GPS location, it quickly entered mode LAND and quit the program. Why is this? Is this a failsafe mode feature?
Also, any updates on changing vehicle mode fix?
from dronekit-python.
Re: vehicle mode fix
Hmm - I looked at the code and realized (I thought) it was fine.
Re: entering landing mode
Do you have a conventional rc xmitter? If not, I bet the land mode is due
to RC failsafe for loss ofr RC signal - you can turn this off by setting a
param (if you can't find the param, let me know and I'll grep the src when
I get to work)
On Sat, Aug 16, 2014 at 8:19 PM, Eric Smalls [email protected]
wrote:
so it was needing to arm and channel override!
Curious enough after attempting to takeoff/goto set GPS location, it
quickly entered mode LAND and quit the program. Why is this? Is this a
failsafe mode feature?Also, any updates on changing vehicle mode fix?
—
Reply to this email directly or view it on GitHub
#10 (comment)
.
from dronekit-python.
re: mode fix
You are correct! The mavproxy module for mode mapping got messed up on our Pi so we reinstalled everything and now Droneapi examples (1) small demo and (2) follow me both work. It also explains why we got mixed results on Ubuntu. Thank you!
re: rc failsafe
I think we would set it similar to how it's done in the Pi<>Mavlink tutorial for arming using 'param set...' in Mavproxy [1, 2]. For example,
'param set ARMING_CHECK 0'
So I think:
'param set THR_FAILSAFE 0'
Should work for disabling rc failsafe in mavproxy [3].
(Away from drone)
What do you think?
Sources:
[1] http://dev.ardupilot.com/wiki/raspberry-pi-via-mavlink/
[2] http://tridge.github.io/MAVProxy/parameters.html
[3] http://dev.ardupilot.com/wiki/mavlink-parameters/
from dronekit-python.
re: setting parameters
I'm curious how to set parameters on Droneapi. I think v.parameters('THR_FAILSAFE', 0) would work [1, 2, 3]. Away from drone, thoughts? I'll be able to run tests soon.
from dronekit-python.
re: disabling rc failsafe
I tested 'param set THR_FAILSAFE 0' in mavproxy and there was no parameter found so I ran 'param show' and found 'FS_THR_ENABLE'.
After researching this parameter online, I set 'param set FS_THR_ENABLE 2' and successfully ran small demo.py without automatically going into mode Land [1].
Sources:
[1] https://code.google.com/p/arducopter/wiki/AC2_Failsafe
from dronekit-python.
re: disabling rc failsafe
So it turns out we weren't successfully starting a mission [1]. After refreshing our memory and starting a mission by (1) loading waypoints, (2) arming, (3) setting mode to AUTO, and (4) throttling rc, we immediately entered mode RTL [2].
This led us to believe, 'param set FS_THR_ENABLE 2' was not disabling rc failsafe. We next tried 'param set FS_THR_ENABLE 0' which successfully kept us in mode AUTO.
It should be noted that a simple google search of FS_THR_ENABLE leads one to '2' not '0' as a correct input [3].
Sources:
[1] http://copter.ardupilot.com/wiki/auto-mode/
[2] https://code.google.com/p/arducopter/wiki/AC2_Failsafe
[3] http://wiki.ardupilot-mega.googlecode.com/git/images/Failsafe/MPFSThrottleParams.png
from dronekit-python.
After testing a few times it looks like this explains why we have had mixed results with 0 & 2.
We are still having trouble reliably staying in AUTO mode. What are your thoughts?
Sources:
[1] http://copter.ardupilot.com/wiki/arducopter-parameters/#Throttle_Failsafe_Enable_ArduCopterFS_THR_ENABLE
from dronekit-python.
re: AUTO mode
Issue solved.
from dronekit-python.
Great! Sorry - I was away a few days, I assume you are all good now?
On Fri, Aug 29, 2014 at 12:12 PM, Eric Smalls [email protected]
wrote:
re: AUTO mode
Issue solved.—
Reply to this email directly or view it on GitHub
#10 (comment)
.
from dronekit-python.
If this isn't yet resolved lets create a new issue to troubleshoot
from dronekit-python.
Since this may not have gotten rolled back into any documentation, this is what I'm using for some SITL tests:
param set FS_THR_ENABLE 0
param set FS_GCS_ENABLE 0
param set ARMING_CHECK 0
Which seemed to be successful. I can imagine scenarios where a DISARMING MOTORS trigger would still occur, but have nothing that causes that effect so far.
from dronekit-python.
@tcr3dr Setting ARMING_CHECK 0 is a big no no for real code. Might be worth adding a note in the test code to make it clear that this isn't something to do normally (since some people might copy it).
from dronekit-python.
@hamishwillee Can confirm. Basically a big warning around the ARMING_CHECK section on SITL will help. http://android.dronekit.io/getting_started.html
from dronekit-python.
@tcr3dr Thanks. I will add note for Android (dronekit/dronekit-android#199). There is already a note for Python but it could be more prominent (#205).
from dronekit-python.
Going to close this since it's API references are fairly outdated.
from dronekit-python.
Good call.
from dronekit-python.
Related Issues (20)
- Can I use sbus in dronekit? HOT 3
- Interested in becoming a maintainer HOT 7
- DroneKit using any flight controller HOT 2
- problem with the simolation HOT 1
- problem with the heartbeat HOT 2
- Sending Velocity and Yaw command in same message in guided mode HOT 10
- Copter not responding to `set_position_target_local_ned` mavlink commands
- I want to commit to this project HOT 3
- How can I get connection strings when connect multi vehicles by Radio? HOT 2
- Warning: "got MISSION_REQUEST; use MISSION_REQUEST_INT!" when requesting missions with DroneKit
- @morzack I have facing this issue HOT 2
- Greetings & guidance with running drone indoors HOT 1
- Failing to arm motors HOT 2
- cd
- Unable to Change VehicleMode to "GUIDED" in Python DroneKit Script
- Yaw don`t updated properly HOT 3
- Unable to Update a Specific Mission Item in DroneKit: Seeking Guidance on a Workaround
- DroneKit condition_yaw() and NED_Velocity() not working
- Drone kit SITL issue
- Dronekit Python QuadCopter Kamikaze Drone Pitch Settings HOT 3
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 dronekit-python.