URL
https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk
Show entire file |
Details |
Blame |
View Log
Rev 3 |
Rev 4 |
Line 72... |
Line 72... |
|
|
#if 0
|
#if 0
|
pos_init_idx = 0;
|
pos_init_idx = 0;
|
double lat = defaultPos[pos_init_idx].x() + (double)(rand() & 0x1f)/100000.0;
|
double lat = defaultPos[pos_init_idx].x() + (double)(rand() & 0x1f)/100000.0;
|
double lon = defaultPos[pos_init_idx].y()+ (double)(rand() & 0x1f)/100000.0;
|
double lon = defaultPos[pos_init_idx].y()+ (double)(rand() & 0x1f)/100000.0;
|
for (int x = 0; x < 20; x++) {
|
for (int x = 0; x < 50; x++) {
|
gpsLat_.put(lat);
|
gpsLat_.put(lat);
|
gpsLon_.put(lon);
|
gpsLon_.put(lon);
|
lat = defaultPos[pos_init_idx].x() + (double)(rand() & 0x1f)/100000.0;
|
lat = defaultPos[pos_init_idx].x() + (double)(rand() & 0x1f)/100000.0;
|
lon = defaultPos[pos_init_idx].y() + (double)(rand() & 0x1f)/100000.0;
|
lon = defaultPos[pos_init_idx].y() + (double)(rand() & 0x1f)/100000.0;
|
}
|
}
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.