mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
AndroidGCS: Entire hash is now used to locate objects and they are pulled from
assets/uavos
This commit is contained in:
parent
557904fec9
commit
fcaced59b5
@ -309,7 +309,7 @@ public class OPTelemetryService extends Service {
|
||||
try
|
||||
{
|
||||
File outputFile = new File(jarsDir, JAR_NAME);
|
||||
inputStream = assetManager.open(JAR_NAME); //JAR_DIR + File.separatorChar + JAR_NAME);
|
||||
inputStream = assetManager.open("uavos/" + JAR_NAME);
|
||||
outputStream = new FileOutputStream(outputFile);
|
||||
copyStream(inputStream, outputStream);
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ public abstract class TelemetryTask implements Runnable {
|
||||
if(description == null || description.getNumElements() < 100) {
|
||||
telemService.toastMessage("Failed to determine UAVO set");
|
||||
} else {
|
||||
final int HASH_SIZE_USED = 8;
|
||||
final int HASH_SIZE_USED = 20;
|
||||
String jarName = new String();
|
||||
for(int i = 0; i < HASH_SIZE_USED; i++)
|
||||
jarName += Integer.toHexString((int) description.getDouble(i+60));
|
||||
|
Loading…
Reference in New Issue
Block a user