updated description for 2016

This commit is contained in:
Alexander Schlenk 2016-07-04 17:46:39 +02:00
parent 0d54ae4634
commit b2b4c21fe8
4 changed files with 2319 additions and 1214 deletions

View File

@ -14,6 +14,7 @@ public class CircleGeofence implements Geofence {
@Override
public boolean containsLocation(Location location) {
// TODO
return false;
}
}

View File

@ -38,6 +38,7 @@ public class GeofenceApp extends Service implements LocationListener {
private LocationManager locationManager;
private Geofence geofence;
// TODO: create constructor
@Override
public void onCreate() {
@ -60,6 +61,14 @@ public class GeofenceApp extends Service implements LocationListener {
}
}
private void initHeadUnitService() {
// TODO
}
private void initLocationListener() {
// TODO
}
@Override
public IBinder onBind(Intent intent) {
return null;
@ -67,7 +76,7 @@ public class GeofenceApp extends Service implements LocationListener {
@Override
public void onLocationChanged(Location location) {
// TODO
}
@Override
@ -84,4 +93,10 @@ public class GeofenceApp extends Service implements LocationListener {
public void onProviderDisabled(String provider) {
}
public Location latestLocation()
{
// TODO
return null;
}
}

View File

@ -15,8 +15,6 @@ see https://esrlabs.github.io/bake/
In this task you will need to receive Can-frames on the can-bus that contain the GPS location of the
vehicle. The raw data has to be converted to arc-milliseconds
1°2'5" == (1*3600+ 2*60 + 5)*1000
**Beware that the system you are running your code on will not support floating point operations.
Use only unsigned and signed integers!**
Still the precision of your calculations has to be +-100 milli-arc-seconds
@ -25,18 +23,21 @@ Dynamic allocation is not supported on the system.
You will have to complete the *GpsConverter.cpp* (and .h).
## Conversion between Arc-Degree and arc-milliseconds
## Conversion to Arc-Degree
1°2'5" == (1*3600+ 2*60 + 5)*1000
inDegree hex = 180/(2^31-1) * (hex) [°]
## Conversion of raw values to Arc-Degree
value [degree] = 180/(2^31-1) * value[raw]
#### HINT 1
Try to use constants as much as possible, isntead of computing stuff on the go.
Try to use constants as much as possible, instead of computing stuff on the go.
#### HINT 2
In order to aviod losing decimals first multiply with a large factor and then divide to get the result in ms.
In order to avoid losing decimals first, multiply with a large factor and then divide to get the result in ms.
## GPS Datalayout in CAN Message
@ -53,6 +54,8 @@ In order to aviod losing decimals first multiply with a large factor and then di
Little Endian (Least Significant Byte is at lowest address)
# Signal Descriptions
## Status Longitude Navigation
ST_LONG_NAVI
@ -91,9 +94,13 @@ Invalid-Value: 80 00 00 00
Signal not available value: 7F FF FF FF and FF FF FF FF
## Send the data over to the AC
# Tests
Use the *IGpsACPusher*.
Use the rake file in the "ppc" folder to build your project and run the tests
## Building the project
execute `rake build` from this directory
## Running the tests

File diff suppressed because it is too large Load Diff