cabana: remove demo_routes
parent
fdb88e804d
commit
f4d528b2de
|
@ -128,7 +128,7 @@ export default class CanExplorer extends Component {
|
|||
this.showOnboarding();
|
||||
}
|
||||
}).catch((err) => {
|
||||
|
||||
this.showOnboarding();
|
||||
});
|
||||
}
|
||||
else if(dongleId && name) {
|
||||
|
@ -141,7 +141,7 @@ export default class CanExplorer extends Component {
|
|||
this.showOnboarding();
|
||||
}
|
||||
}).catch((err) => {
|
||||
|
||||
this.showOnboarding();
|
||||
});
|
||||
} else {
|
||||
this.showOnboarding();
|
||||
|
|
|
@ -4,78 +4,6 @@ import CommaAuth from './comma-auth';
|
|||
|
||||
const ROUTES_ENDPOINT = 'https://api.commadotai.com/v1/{dongleId}/routes/';
|
||||
|
||||
let DEMO_ROUTES = {
|
||||
"2017-06-12--18-51-47": {
|
||||
"can": true,
|
||||
"device_type": 3,
|
||||
"end_geocode": "Los Altos",
|
||||
"end_lat": 37.4123,
|
||||
"end_lng": -122.12,
|
||||
"end_time": "2017-06-12T19:02:41",
|
||||
"fullname": "cb38263377b873ee|2017-06-12--18-51-47",
|
||||
"len": 2.82899,
|
||||
"maxcamera": 12,
|
||||
"maxlog": 12,
|
||||
"movie": true,
|
||||
"piececount": 12,
|
||||
"proccamera": 12,
|
||||
"proclog": 12,
|
||||
"sig_path": "cb38263377b873ee/78392b99580c5920227cc5b43dff8a70_2017-06-12--18-51-47",
|
||||
"start_geocode": "Stanford",
|
||||
"start_lat": 37.4267,
|
||||
"start_lng": -122.159,
|
||||
"start_time": "2017-06-12T18:51:47",
|
||||
"url": "https://chffrprivate.blob.core.windows.net/chffrprivate3/v2/cb38263377b873ee/78392b99580c5920227cc5b43dff8a70_2017-06-12--18-51-47"
|
||||
},
|
||||
|
||||
"2017-06-30--17-37-49": { // prius
|
||||
"can": true,
|
||||
"device_type": 3,
|
||||
"end_geocode": "Daly City",
|
||||
"end_lat": 37.7391,
|
||||
"end_lng": -122.465,
|
||||
"end_time": "2017-06-30T17:54:07",
|
||||
"fullname": "b67ff0c1d78774da|2017-06-30--17-37-49",
|
||||
"len": 2.23534,
|
||||
"maxcamera": 18,
|
||||
"maxlog": 18,
|
||||
"movie": true,
|
||||
"piececount": 18,
|
||||
"proccamera": 18,
|
||||
"proclog": 18,
|
||||
"sig_path": "b67ff0c1d78774da/c130d5eaf04518c4d08ede29efbd519b_2017-06-30--17-37-49",
|
||||
"start_geocode": "Daly City",
|
||||
"start_lat": 37.7394,
|
||||
"start_lng": -122.465,
|
||||
"start_time": "2017-06-30T17:37:49",
|
||||
"url": "https://chffrprivate.blob.core.windows.net/chffrprivate3/v2/b67ff0c1d78774da/c130d5eaf04518c4d08ede29efbd519b_2017-06-30--17-37-49"
|
||||
},
|
||||
"2017-07-10--19-11-08": { // elikorh panda route with bad offset
|
||||
"can": true,
|
||||
"device_type": 2,
|
||||
"end_geocode": "Fargo",
|
||||
"end_lat": 46.9041,
|
||||
"end_lng": -96.8059,
|
||||
"end_time": "2017-07-10T19:19:34",
|
||||
"fullname": "03ad84b839400fdb|2017-07-10--19-11-08",
|
||||
"len": 5.4562,
|
||||
"maxcamera": 8,
|
||||
"maxlog": 8,
|
||||
"movie": true,
|
||||
"piececount": 8,
|
||||
"proccamera": 8,
|
||||
"proclog": 8,
|
||||
"sig_path": "03ad84b839400fdb/29176323acf8f30b6a09c188d8a3edb9_2017-07-10--19-11-08",
|
||||
"start_geocode": "Fargo",
|
||||
"start_lat": 46.8565,
|
||||
"start_lng": -96.8426,
|
||||
"start_time": "2017-07-10T19:11:08",
|
||||
"url": "https://chffrprivate.blob.core.windows.net/chffrprivate3/v2/03ad84b839400fdb/29176323acf8f30b6a09c188d8a3edb9_2017-07-10--19-11-08"
|
||||
}
|
||||
};
|
||||
|
||||
DEMO_ROUTES = momentizeTimes(DEMO_ROUTES);
|
||||
|
||||
function momentizeTimes(routes) {
|
||||
for(let routeName in routes) {
|
||||
routes[routeName].start_time = Moment(routes[routeName].start_time);
|
||||
|
@ -106,7 +34,7 @@ export async function fetchRoutes(dongleId) {
|
|||
}
|
||||
}
|
||||
|
||||
return DEMO_ROUTES;
|
||||
return {};
|
||||
}
|
||||
|
||||
export function cameraPath(routeUrl, frame) {
|
||||
|
|
|
@ -32,8 +32,10 @@ if (routeFullName) {
|
|||
props.url = url;
|
||||
}
|
||||
} else if(getUrlParameter('demo')) {
|
||||
props.dongleId = 'cb38263377b873ee';
|
||||
props.max = 12;
|
||||
props.url = 'https://chffrprivate.blob.core.windows.net/chffrprivate3/v2/cb38263377b873ee/78392b99580c5920227cc5b43dff8a70_2017-06-12--18-51-47';
|
||||
props.name = '2017-06-12--18-51-47';
|
||||
props.dongleId = 'cb38263377b873ee';
|
||||
props.dbc = AcuraDbc;
|
||||
props.dbcFilename = 'acura_ilx_2016_can.dbc';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue