Skip to content

Conversation

@RUFFY-369
Copy link
Contributor

for interfacing drone wrapper and rotors sim

Copy link
Member

@iamarkaj iamarkaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the unnecessary comments and spaces. The "firefly" model is missing inside drone_assets.

@pariaspe pariaspe self-requested a review August 1, 2022 08:31
return True, 0
elif not req and 0.0<=self.current_z<0.3:
rospy.loginfo("Firefly Disarming")
self.__is_armed = False
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if disarming when I might be flying is a good idea. If I'm landing at 0.2m height I'll be disarmed but flying, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solved in latest changes..these were some unresolved contradictions and I've solved with little changes


self.frame_id = self.current_state.header.frame_id

if self.current_z<0.1:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not bad, but it can be done better as finite state machine. Called from arming and takeoff/land methods

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solved in latest commits

@pariaspe pariaspe merged commit 96b349d into JdeRobot:noetic-devel Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants