Aceinna Navigation Studio: open-source, embedded development platform for Aceinna IMU hardware. Run custom algorithms and navigation code on Aceinna IMU/INS hardware
I intend to understand the programing of an OpenRTK330LI. So far I managed to install PlatformIO together with the Aceinna AddOn within VisualStudioCode on Windows 10. Unfortunately I am not able to compile the RTK_INS example. I tried with several branches of the repository, but got always stuck. The errors (see below) guide to some "UserConfigurationStruct". Did I miss some configurations here? Are there other working examples or "HowTo"s for OpenRTK330LI? Any help would be appreciated.
My output looks like this:
PS C:\Users\Fredrich\gitCodes\platform-aceinna_imu\examples\OpenRTK330LI\RTK_INS> pio run -c .\platformio.ini
Processing OpenRTK (platform: aceinna_imu; board: OpenRTK)
Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/aceinna_imu/OpenRTK.html
PLATFORM: Aceinna IMU (1.3.1) > Aceinna OpenIMU 330ZA
HARDWARE: STM32F469IG 180MHz, 384KB RAM, 1MB Flash
DEBUG: Current (stlink) External (blackmagic, jlink, stlink)
PACKAGES:
toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 1 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 1.0.8
Building in release mode
Compiling .pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.o
Compiling .pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.o
Compiling .pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\user\src\tls_tcp.o
Compiling .pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\webserver\src\fs.o
Compiling .pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\webserver\src\httpd.o
Compiling .pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\webserver\src\httpd_handler.o
Compiling .pio\build\OpenRTK\lib5ba\OpenRTK-base-library\Platform\BT\src\bt_packet.o
Compiling .pio\build\OpenRTK\lib5ba\OpenRTK-base-library\Platform\BT\src\json_parse.o
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c: In function 'fill_localrtk_request_payload':
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:36:61: error: 'UserConfigurationStruct {aka struct }' has no member named 'mountPoint'
strcat((char )payload, (const char )gUserConfiguration.mountPoint);
^
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:62:57: error: 'UserConfigurationStruct {aka struct }' has no member named 'username'
strcpy((char )key, (const char )gUserConfiguration.username);
^
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:64:57: error: 'UserConfigurationStruct {aka struct }' has no member named 'password'
strcat((char )key, (const char )gUserConfiguration.password);
^
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c: In function 'NTRIP_interface':
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:300:58: error: 'UserConfigurationStruct {aka struct }' has no member named 'ip'
err = ipaddr_aton((const char*)gUserConfiguration.ip, &server_ipaddr);
^
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:305:23: warning: implicit declaration of function 'dns_get_ip_by_hostname'; did you mean 'get_ip_by_host'? [-Wimplicit-function-declaration]
err = dns_get_ip_by_hostname(gUserConfiguration.ip, &server_ipaddr);
^~~~~~
get_ip_by_host
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:305:64: error: 'UserConfigurationStruct {aka struct }' has no member named 'ip'
err = dns_get_ip_by_hostname(gUserConfiguration.ip, &server_ipaddr);
^
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:322:83: error: 'UserConfigurationStruct {aka struct }' has no member named 'port'
err = netconn_connect(Ntrip_client, &server_ipaddr, gUserConfiguration.port);
^
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:411:36: error: 'UserConfigurationStruct {aka struct }' has no member named 'ethMode'; did you mean 'eth_mode'?
if (gUserConfiguration.ethMode == ETHMODE_DHCP)
^~~
eth_mode
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:418:41: error: 'UserConfigurationStruct {aka struct }' has no member named 'ethMode'; did you mean 'eth_mode'?
else if (gUserConfiguration.ethMode == ETHMODE_STATIC)
^~~
eth_mode
** [.pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.o] Error 1
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.c: In function 'fill_ntrip_client_request_payload':
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.c:51:31: warning: passing argument 2 of 'mbedtls_base64_encode' makes pointer from integer without a cast [-Wint-conversion]
base64_encode(base64_buf, sizeof(base64_buf), &len, key, len);
^~
In file included from .pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.c:7:0:
.pio\libdeps\OpenRTK\OpenRTK-base-library\mbedTLS\lib\include\mbedtls/compat-1.3.h:1763:23: note: expected 'uint8_t {aka unsigned char *}'
but argument is of type 'unsigned int'
define base64_encode mbedtls_base64_encode
^
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\inc/base64.h:8:6: note: in expansion of macro 'base64_encode'
void base64_encode(uint8_t str, uint8_t res);
^~~~~
.pio\libdeps\OpenRTK\OpenRTK-base-library\mbedTLS\lib\include\mbedtls/compat-1.3.h:1763:23: error: too many arguments to function 'mbedtls_base64_encode'
define base64_encode mbedtls_base64_encode
^
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.c:51:5: note: in expansion of macro 'base64_encode'
base64_encode(base64_buf, sizeof(base64_buf), &len, key, len);
^~~~~
.pio\libdeps\OpenRTK\OpenRTK-base-library\mbedTLS\lib\include\mbedtls/compat-1.3.h:1763:23: note: declared here
define base64_encode mbedtls_base64_encode
^
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\inc/base64.h:8:6: note: in expansion of macro 'base64_encode'
void base64_encode(uint8_t str, uint8_t res);
^~~~~
*** [.pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.o] Error 1
======================================================== [FAILED] Took 4.22 seconds ========================================================
Thanks for this great project!
I intend to understand the programing of an OpenRTK330LI. So far I managed to install PlatformIO together with the Aceinna AddOn within VisualStudioCode on Windows 10. Unfortunately I am not able to compile the RTK_INS example. I tried with several branches of the repository, but got always stuck. The errors (see below) guide to some "UserConfigurationStruct". Did I miss some configurations here? Are there other working examples or "HowTo"s for OpenRTK330LI? Any help would be appreciated.
My output looks like this:
PS C:\Users\Fredrich\gitCodes\platform-aceinna_imu\examples\OpenRTK330LI\RTK_INS> pio run -c .\platformio.ini Processing OpenRTK (platform: aceinna_imu; board: OpenRTK)
Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/aceinna_imu/OpenRTK.html PLATFORM: Aceinna IMU (1.3.1) > Aceinna OpenIMU 330ZA HARDWARE: STM32F469IG 180MHz, 384KB RAM, 1MB Flash DEBUG: Current (stlink) External (blackmagic, jlink, stlink) PACKAGES:~~~~~ get_ip_by_host .pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:305:64: error: 'UserConfigurationStruct {aka struct~~ eth_mode .pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.c:418:41: error: 'UserConfigurationStruct {aka struct~~ eth_mode ** [.pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\ntrip\src\ntrip_client.o] Error 1 .pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.c: In function 'fill_ntrip_client_request_payload': .pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.c:51:31: warning: passing argument 2 of 'mbedtls_base64_encode' makes pointer from integer without a cast [-Wint-conversion] base64_encode(base64_buf, sizeof(base64_buf), &len, key, len); ^~In file included from .pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.c:7:0: .pio\libdeps\OpenRTK\OpenRTK-base-library\mbedTLS\lib\include\mbedtls/compat-1.3.h:1763:23: note: expected 'uint8_t {aka unsigned char *}' but argument is of type 'unsigned int'define base64_encode mbedtls_base64_encode
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\inc/base64.h:8:6: note: in expansion of macro 'base64_encode' void base64_encode(uint8_t str, uint8_t res); ^
~~~~ .pio\libdeps\OpenRTK\OpenRTK-base-library\mbedTLS\lib\include\mbedtls/compat-1.3.h:1763:23: error: too many arguments to function 'mbedtls_base64_encode'define base64_encode mbedtls_base64_encode
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.c:51:5: note: in expansion of macro 'base64_encode' base64_encode(base64_buf, sizeof(base64_buf), &len, key, len); ^
~~~~ .pio\libdeps\OpenRTK\OpenRTK-base-library\mbedTLS\lib\include\mbedtls/compat-1.3.h:1763:23: note: declared heredefine base64_encode mbedtls_base64_encode
.pio\libdeps\OpenRTK\OpenRTK-base-library\LWIP\lwip_app\ntrip\inc/base64.h:8:6: note: in expansion of macro 'base64_encode' void base64_encode(uint8_t str, uint8_t res); ^
~~~~ *** [.pio\build\OpenRTK\lib5ba\OpenRTK-base-library\LWIP\lwip_app\station\src\ntrip_client.o] Error 1 ======================================================== [FAILED] Took 4.22 seconds ========================================================