Embedded C for Self Driving Car Part 1
Integer Type
So you are ready to write embedded code for a self-driving car like WAYMO or a smart thermostat like Nest. You want to write a code that will go to a specific processor to analyze certain sensor data to make decisions like make a right turn or turn on the heat.
Let’s sit back, and think a little deep. Let’s break down the problem. Let’s only focus on one particular part of the problem.
As an example, I am going to only talk about a single problem that will process the current location of self-driving vehicle which in technical jargon is called LOCALIZATION. Which in my experience is the most difficult problem technically.
In the localization problem, there are multiple sensors data that help make a decision about the current location, the direction it is heading as well as posture(JUMPING like a TRX). We will focus on thinking that the vehicle is going to move forward and we only need to know how much it moved forward.
Let’s simplify the problem more. We will assume that there will not be any slipping of the tire like the way bald guys drive in FAST & FURIOUS. And also let’s assume the tire is…