I have changed the parameters as mentioned, I have currently both lines like this:
$APM_BIN_DIR/ArduCopter.elf -A udp:127.0.0.1:6001 -C /dev/ttyUSB0 $FLAGS
$APM_BIN_DIR/ArduCopter.elf -A udp:10.0.0.2:6000 -B /dev/ttyAMA0 -C /dev/ttyUSB0
and the setup-mavros-bridge-serial.bash AMA0 changed to USB like this:
rosrun mavros gcs_bridge _name:="gcsbridge_serial" gcsurl:="serial:///dev/ttyUSB0"
I rebooted and tried to load settings in Mission Planner but still gives the error message "Failed to enter command mode". Also i tried to update the firmware but then gives the error "Failed to identity radio". Radios are blinking in red as transmitting and the green light is on like they are connected though.
Any idea on what might be wrong?