SDLアプリコンテスト 七日目

#概要

SDLアプリコンテスト、見つけたので挑戦してみる。
アプリの検討してみた。

#アプリの検討

##手持ちのアプリから

手持ちのアプリをSDL対応にするのが、手っ取り早い。
グーグルプレイを見ると、1個しかない。
https://play.google.com/store/apps/developer?id=Ohisamallc
GPSカーでSDLは無理。

##SDLで取得できる情報から

|VEHICLE DATA|DESCRIPTION|
|:---|:---|
|GPS|Longitude and latitude, current time in UTC, degree of precision, altitude, heading, speed, satellite data vs dead reckoning, and supported dimensions of the GPS|
|Speed|Speed in KPH|
|RPM|The number of revolutions per minute of the engine|
|Fuel level|The fuel level in the tank (percentage)|
|Fuel level state|The fuel level state: unknown, normal, low, fault, alert, or not supported|
|Fuel range|The estimate range in KM the vehicle can travel based on fuel level and consumption|
|Instant fuel consumption|The instantaneous fuel consumption in microlitres|
|External temperature|The external temperature in degrees celsius|
|VIN|The Vehicle Identification Number|
|PRNDL|The selected gear the car is in: park, reverse, neutral, drive, sport, low gear, first, second, third, fourth, fifth, sixth, seventh or eighth gear, unknown, or fault|
|Tire pressure|Tire status of each wheel in the vehicle: normal, low, fault, alert, or not supported. Warning light status for the tire pressure: off, on, flash, or not used|
|Odometer|Odometer reading in km|
|Belt status|The status of each of the seat belts: no, yes, not supported, fault, or no event|
|Body information|Door ajar status for each door. The Ignition status. The ignition stable status. The park brake active status.|
|Device status|Contains information about the smartphone device. Is voice recognition on or off, has a bluetooth connection been established, is a call active, is the phone in roaming mode, is a text message available, the battery level, the status of the mono and stereo output channels, the signal level, the primary audio source, whether or not an emergency call is currently taking place|
|Driver braking|The status of the brake pedal: yes, no, no event, fault, not supported|
|Wiper status|The status of the wipers: off, automatic off, off moving, manual interaction off, manual interaction on, manual low, manual high, manual flick, wash, automatic low, automatic high, courtesy wipe, automatic adjust, stalled, no data exists|
|Head lamp status|Status of the head lamps: whether or not the low and high beams are on or off. The ambient light sensor status: night, twilight 1, twilight 2, twilight 3, twilight 4, day, unknown, invalid|
|Engine torque|Torque value for engine (in Nm) on non-diesel variants|
|Engine oil life|The estimated percentage of remaining oil life of the engine|
|Acceleration pedal position|Accelerator pedal position (percentage depressed)|
|Steering wheel angle|Current angle of the steering wheel (in degrees)|
|E-Call information|Information about the status of an emergency call|
|Airbag status|Status of each of the airbags in the vehicle: yes, no, no event, not supported, fault|
|Emergency event|The type of emergency: frontal, side, rear, rollover, no event, not supported, fault. Fuel cutoff status: normal operation, fuel is cut off, fault. The roll over status: yes, no, no event, not supported, fault. The maximum change in velocity. Whether or not multiple emergency events have occurred|
|Cluster mode status|Whether or not the power mode is active. The power mode qualification status: power mode undefined, power mode evaluation in progress, not defined, power mode ok. The car mode status: normal, factory, transport, or crash. The power mode status: key out, key recently out, key approved, post accessory, accessory, post ignition, ignition on, running, crank|
|My key|Information about whether or not the emergency 911 override has been activated|
|Turn signal|The status of the turn light indicator|
|Electronic park brake status|The status of the park brake as provided by Electric Park Brake (EPB) system|

obd-2のデータが多い。
ウィンカーとかワイパーとかライトとか、パーキングブレーキとかは、obd-2には、無い。
gpsは、無いだろう。
考えつくのは、０－４００ｍ計測とか、tunerstudio連携とか、エコドライブ支援とか。

##SDLでリモコンから

Climate、Radio、Seat、Audio、Light、HMI Settingsがコントロールできるらしい。
考えつくのは、シリ。

##androidセンサーとの連携から

アクセル、オリエンテーション、磁北、GPS、bluetooth,wifi,カメラ、マイクを使うで考えつくのは、迷子紐とか、すれ違い通信とか、自動運転とか、エコドライブ支援とか。

#プロトタイピングしてみる。

エコドライブ支援をプロトタイピングしてみる。
androidの加速度センサーを使って、運転のログを取ってみる。
sdcardを使うので、android1.6でログをとってみた。

![pandas4.png](https://qiita-image-store.s3.amazonaws.com/0/18104/7c0138ad-94ec-7778-3f96-2e5e74746078.png)

今日は、ここまで

以上。