Well, the code was written against the 2015 API, and you probably have the 2016 API loaded. There are compatibility issues when using different versions of the API!
A little googling turned up a copy of the
2015 API Javadoc and the
2016 API Javadoc. Since you mentioned Gyro code, I checked out that area... It seems that 2015 had a
Gyro class, while 2016 instead had a
Gyro Interface, which lists several known implementations. So, that's one possible difference in the API that would cause old code to have serious issues with the newer API!
That said, I'm not going to go through and do any code analysis to figure out what the exact problem is and where to fix it... that I leave up to you!