Roll and pitch are zero before algrithm initlization is done. Normally, algrithm initlization can be done within 1 second. Initial roll and pitch are calculated by averaged 3D acceleration. If you want to modify duration of algrithm initlization for your application, you can adjust 'INITIALIZE_ATTITUDE_DURATION' in source code. Thank you.