The last code block has a typo:
#define FRAMERATE = 100.0
Should probably be: #define FRAMERATE 100.0 #define FRAMERATE = 100.0
Should probably be: #define FRAMERATE 100.0I think you also meant the predict quantities were zero, not the update!