Added gain scheduling

This commit is being made before our first non-anchored test
flight.

This change also makes the I2CChannel repeat its operation if it
fails up to three times by default.