Comments (11)
Hi,
This thrust mapping should be fine: throttle = thrust/36.0 + 0.1
for firefly where thrust is in [N] (as the controller outputs).
Don't forget to limit the throttle between 0 and 1.
from mav_control_rw.
Thanks,
I was about to test but I frequently get the following warning which seems like a bad idea to test.
[ WARN] [1492047085.047300274]: No odometry message received in the last 1 seconds!
Seems intermittent, what's weird is that if I run rostopic hz
on my odometry topic (in the firefly) I correctly get 100Hz.
Here's my current setup. Basically my vicon node runs on my laptop and I get odometry from MSF fusing /fcu/imu
with /vicon/firefly_green/pose
.
I don't really see any reason why the watchdog would trigger. Ever seen this problem?
Edit: Additional info, I'm running my Vicon at 100Hz and my /fcu/imu
topic also runs at 100Hz.
Edit2: I have also set use_rc_teleop
to false
since I do not have another RC other than the one directly connected to the firefly.
from mav_control_rw.
Yes. It is a bug in the way the odom warning is printed. It happens because of this line
https://github.com/ethz-asl/mav_control_rw/blob/master/mav_control_interface/src/state_machine.h#L157
Basically if you are in RC mode (manual flight) the odometry watchdog is checked but the odom msg is not updated. It is not harmful, so you can proceed with your tests. I will push a fix later today.
from mav_control_rw.
I think we are talking about two different things here use_rc_teleop
is already false
. So my problem is actually the opposite of the situation you are describing 😕
from mav_control_rw.
I see. Then this issue should be already fixed. Can you make sure you pull latest master and recompile? Also, do you have anything publishing on the rc
topic?
A side comment: You can use the same RC connected to the MAV for teleoperation and manual mode, you don't need 2 remotes. This requires a modification in asctec_mav_framework
that we are planning to push to the open repo soon.
from mav_control_rw.
@andre-nguyen any update on this?
from mav_control_rw.
Unfortunately the deadline for my class came up and I decided to submit my work in simulation only 😅 . Everything flies perfect in gazebo but, in the end I only attempted two real flights and both didn't work and I had to take back control.
I don't think it was something to do with this package specifically but rather how to use asctec_mav_framework
to fuse vicon measurements on the onboard HLP. However, in one of my flights I attempted to simply plug vicon odometry directly to this package and it still didn't work.
Admittedly, it's been almost two months so my memory is a bit fuzzy but yeah it basically came down to the fact that I didn't fully comprehend your full setup.
I would be interested in trying this again before finishing my masters but it probably won't be in the next few weeks.
Thanks for the help though!
from mav_control_rw.
Ok. Let us know if you need help later.
from mav_control_rw.
@fmina Just wanted to let you know that I'm currently giving this another try. I've updated all my repos to include the new commits you pushed to asctec_mav_framework
. I'm still periodically getting the odom problem but I've confirmed the nodes are correctly connected and that MSF gets my vicon data.
For an initial test I did the following:
- Start
ros_vrpn_client
and send the transform data to MSF - Initialize MSF and confirm the linear mpc receives the pose estimates
- Put the mode switch in position control (what would usually be GPS)
- Put the control interface switch to on (the 2 position switch on the right for HL processor comms)
- Slowly move the throttle stick up.
The firefly drifts and after a bit of fiddling it looks like the roll and pitch commands are in the wrong direction. i.e. if I pitch back firefly drifts forward (without stopping) and if I roll right the firefly rolls left.
I doubt this has anything to do with this package specifically. I've confirmed my vicon markers are positioned correctly (x
forwards, y
left, z
up).
Hopefully I can investigate further as I'm pretty excited to see this fly!
from mav_control_rw.
Hhhhm, I wonder if this is it?
ethz-asl/asctec_mav_framework@d5aafab#diff-9e8b3e3b1cb9b73a52caef06453c0fb1R256
Maybe your remote is configured differently?
from mav_control_rw.
Possibly the remote is not configured properly. You can print on screen the rc
message and move the sticks to confirm that it matches this table ethz-asl/asctec_mav_framework@d5aafab#diff-9e8b3e3b1cb9b73a52caef06453c0fb1R239.
Have you verified that odom is getting into the MPC @ 100 Hz?
from mav_control_rw.
Related Issues (20)
- New quadrotor Parrot Bebop simulation HOT 1
- Question about reference state
- drift off/diverge when yaw 90 degree HOT 2
- Catkin build error on rotors_gazebo_plugins HOT 1
- Question About Trajectory Command HOT 5
- Identification of thrust in DJI drones HOT 3
- Real hardware implementation HOT 1
- Delay compensation
- PELICAN IS NOT FOUND HOT 2
- astec_mav_framework
- Query : Regarding the Reference Trajectory Input HOT 1
- Controller with ARdrone
- Cannot Seem to get all packages to catkin build
- reference trajectory linear MPC
- the modified mavros node build
- some problems when combining this project with the modified PX4 firmware"ethzasl_mav_px4" HOT 6
- MAV_Control_rw
- Error: process has died [pid 22759, exit code -11, cmd devel/lib/mav_linear_mpc/mav_linear_mpc_node odometry:=ground_truth/odometry
- Errors from Custom MAVROS Node Install HOT 1
- speed up building time
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 mav_control_rw.