Implemented the has_source value with mode setting.

This is an example of using the has_source values mentioned in #3 and implemented in hal-sim by https://github.com/frc1418/robotpy-2015/pull/80.