alex

129 months ago

 - via web

- Story

Lean Angle: Why is the number so hard to find?

Thank you for using the EatSleepRIDE Motorcycles App. Some of you have tried the Ride Record feature. Some of you have even looked at the data! And a small few have even emailed me to ask why their motorcycle sometimes displays wonky in the ride data visualization, even without a crash…

For this, I say, 'here's why...'

When we started to build the ESR App, measuring the lean angle looked like a reasonably simple and trivial feature to build in. It's not.

While CrashLight is a very complex feature, detecting the angle of lean of a rider on a motorcycle is equally difficult to teach a smartphone to master.

I'll try to explain.

Which angle are you measuring?

First we must determine the angle we're measuring. You'd think this would be an easy answer, right? And if you don't do maths, it is. However, to collect lean angle to the degree we need, we must measure the angle as the deviation that is perpendicular to your plane of travel. Positive is the deviation to the right, and negative is the deviation to the left. Dead simple right? Well…

Perhaps a few images will help.

Calculating Your Lean Angle

Calculating Your Lean Angle

How we measure Lean Angle

How we measure Lean Angle

Hopefully, the images above explain more obviously how the ESR App measures lean angle. Yes, it would be simple to find the lean angle if we could guarantee the phone was always affixed directly to the motorcycle. Why? Because it's the smartphone device that contains the sensors, not the motorcycle.

So, let's consider the iPhone for a minute. The sensors measure the orientation of the phone in space. So far, so good right? (It's why they do a decent job of enabling you to play Super Monkey Ball.)

To accurately detect the lean angle, the ESR App must set a fixed direction and measure the angle from that static point.

Now, imagine that the smartphone is also capable of moving. Once moved, either in your pocket or top box, the fixed direction is no longer fixed.

Oh, and the rider is moving too. Forward, backward, side to side. Even the most sedate rider will move in the saddle from time to time.

And now imagine that you only want to measure the angle relative to the plane of travel. All of a sudden, there's another set of variables to deal with.

To recap then, we're using the smartphone (which moves) to measure the angle of the rider (who moves) on a motorcycle (which moves). To manage all the 'movement' we designed the lean angle to calibrate when you start moving at speed.

I tried to draw the concept in a diagram but my head hurt too much. In other words, it's a very tough problem involving so much maths, we had to find an engineering grad student to figure it out.

How can I record the most accurate lean angles?

With every release, we're adding improvements to a number of features including lean angle.

In the upcoming release 1.2.5, lean angle is again improved. In traffic with frequent stops, you may see a wonky angle when your speed is at zero. Once you pick up speed, your lean angles will be accurate to +/- 3%!

Here's a few pointers that will help improve your lean angle accuracy:

  • The most reliable lean angle calculations will be collected with your device affixed to the motorcycle, either on the bars or in a tank bag
  • If CrashLight is enabled, carry your smartphone snugly in a jacket pocket to prevent it from moving around; in the event of a crash the smartphone should be on you, not the bike
  • Don't carry the smartphone in a pants pocket or a pannier/top box as it can move around in there
  • In all cases, try to ensure the phone moves as little as possible

Lean angle may not be perfect yet, but we're dedicating to improving the accuracy with every release. Please help us improve the feature by sending feedback on what you're seeing.

Ride on.

You must be logged in to comment
Login now

MrEmptyClip

16 days ago

But where is the data!? All I see is a map and normal navigation stuff. I gave you my contact information because all I wanted is an app to show me my lean angle and I cannot see my lean angle and there are no options to display it! The pics on your App Store page showed the lean angle!

alex

105 months ago

@NotHisRealName I meant to add that although you dont have CrashLight, the checks are still running in the background. You shouldn't however have got that message. I'll fix that, too

alex

105 months ago

@NotHisRealName - Android has been more of a challenge with Crash Detection. There's so many more phones, it's tricky to find a balance. If you can PM me your data (what phone/etc) or email it to feedback@eatsleepride.com, I'll take a look at it

NotHisRealName

105 months ago

I'm using an Android phone and, though I don't have Crashlight, had a 'crash detected' message pop up while the phone was mounted on a RAM Mount.I didn't save the ride data that time, but can give it another test soon.

alex

129 months ago

@ScottRC51 - that is worrisome, and it was designed precisely not to do that. Can you send me your data? I'll email you with instructions

ScottRC51

129 months ago

I'm playing around with the lean angle component. After your latest fix the numbers have become way more reasonable. I have my IPhone on a RAM mount on the bike and I position the phone upright as if it was in a jacket pocket. Under acceleration on a rough piece of pavement DID set off Crashlight.

juiceman

129 months ago

Thanks. Good to know.

alex

129 months ago

@juiceman - I've actually tested CrashLight using bar mounts, mainly on my dirt bike (I fall off a lot). While we recommend the pocket for most riders, we have confidence it works just as well in a mount. In fact, that's how I normally carry mine

juiceman

129 months ago

I keep my iPhone on a RAM mount on the bike so I can use it for GPS. Sounds like it will work good for lean angle but poor for CrashLight, which is opposite of my priorities. Am I to assume the CrashLight will not work at all, or not as well, with my iPhone mounted?

alex

129 months ago

@Devon let me know the numbers you collect on your next track day.

devon

129 months ago

The picture was a great help (you picked a good bike for that as well). You also broke down the variables very well. I imagine keeping the phone in a pocket inside your jacket is best because your body won't go where your chest won't.