added copter controller code