Developing and Testing of a Real-Time Scheduler for Autonomous Energy