"לעולם ימוד אדם את עצמו אם יכול לכוין את לבו יתפלל ואם לאו אל יתפלל".
[ברכות ל:]
A person should always check himself first and then pray. If he is able to properly focus then he should pray - if not he should watch a Charlie Harary inspirational video and then pray.
The commentaries note that this is talking about someone who is not on Ritalin. If one is - he should also make sure he took his meds.