You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The armed flag in mavros_msgs::Status is not properly written as a boolean true when the vehicle is armed. It is written to 128.
The reason for this is that booleans in ROS messages are really uint8s, so there is no implicit cast to bool in the below line, as was perhaps assumed.
The armed flag in
mavros_msgs::Status
is not properly written as a booleantrue
when the vehicle is armed. It is written to 128.The reason for this is that booleans in ROS messages are really
uint8
s, so there is no implicit cast to bool in the below line, as was perhaps assumed.mavros/mavros/src/plugins/sys_status.cpp
Line 657 in 1b0600f
The problem with this is that the following check does not work:
This is problematic as one would assume that this works since the documentation/the message definition claims that
status.armed
is a boolean.The below works of course:
Changing the above line to the following fixes the issue:
The text was updated successfully, but these errors were encountered: