/mavros/state topic not updating on armed
/mavros/state topic not updating on armed. The connection and the armed States are not updating in the /mavros/state topic. I even armed the Pixhawk flight controller before starting mavros, and the topic still reads not connected, and not armed. The Pixhawk Ardupilot controller is working with the companion computer as well as the GCS. The drone is armed via mission planner but it is not showing up in the /mavros/state topic which still reads not connected and not armed.
Is there another way to get the armed state from another topic that actually works or is there a way to make the topic work?
also does it only function in certain flight modes? Like Guided or Auto. I ran the test in Stabilized flight mode.
All help will be appreciated. The platform is RPI4b, Ubuntu 20.04, Pixhawk APM 3, and MissionPlannner.
Thanks,
Aaron