Code not working when armed.

Work on this to check what problem is there with the corrupt values of receiver when armed.