-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
px4::1.9.0 fixed wing in offboard mode but any ros::publish for controling the fw is invalid. #12387
Comments
@zhanghouxin07 I believe the current state is you can send |
yeah, I note that there are three subtopics in setpoint_attitude:: thrust, cmd_vel, and attitude. Are these three parts used separately or in combination? which steps may be wrong? for more details, the fw first takeoff in misson mode ,then transform in offboard mode. everything is ok but the control of fw. thanks for your help, professor! |
As I explained, position values are not consumed from the fixed wing position controller. Only the thrust and attitude values will be used. Have you tried using the bodyrate setpoints? Which firmware version are you using? Have you tried with the current master? |
thanks for you help again. I have tried using the bodyrate setpoints, and the firmware verison is 1.9.0. I try to achieve goals but failed. Here is my main part(not the whole) of my code, I appreciate that you can point out my problem.
// set_raw_target_atti.type_mask = mavros_msgs::AttitudeTarget::IGNORE_ROLL_RATE | mavros_msgs::AttitudeTarget::IGNORE_PITCH_RATE |
@zhanghouxin07 It looks like you are missing some fields in the set_raw_target_atti message such as type mask, time stamp |
yeah, My program seems to be missing something or some other unrelated codes affecting fw control. I cannot figure out where is the problem. thanks a lot. |
@zhanghouxin07 Glad to hear that your problem is solved |
@Jaeyoung-Lim @zhanghouxin07
But it behaves as multi-rotor not as fixed wing while moving. |
@hana9090 I suspect that is because you were sending position setpoints while in multirotor mode. Your issue is not related to this issue. Please create a new issue if you have a different issue. |
How to transit this to fixed wing mode? Okay I will create a new issue. Thank you. |
@Jaeyoung-Lim here we go |
@Jaeyoung-Lim what is the difference here? here send position in a different way but still using off-board mode, right? and the vtol run in fixed-wing mode. |
I think maybe you can switch your VTOL from rotate-wing mode to fixed-wing mode first by RC, then make your UAV enter offboard mode. I don't know if this is valid. Maybe you can try it. |
@zhanghouxin07 Please test out #12532 Position setpoints for fixed wing in offboard mode is being tested |
my fixed wing (1.9.0) can enter the offboard mode successfully ,but any publisher by mavros (setpoint_position/local, setpoint_ray/local, or setpoint_attitude ) is invalid. I cannot control my fw in offboard.
after entering the offboard mode, the fw do a forward flight only.
i wonder if there are some step I forget to do after entering offborad, but before controlling my fw.
Or, for fw controling, which ros::topic I should publish to?
Thanks!
The text was updated successfully, but these errors were encountered: