| | |
| | | #include "test_items/driving_curve.h" |
| | | #include "test_items/stop_and_start.h" |
| | | |
| | | #define DEBUG(fmt, args...) LOGD("<driver_test> <%s>: " fmt, __func__, ##args) |
| | | |
| | | using namespace std; |
| | | |
| | | #define RTK_INVALID 0 |
| | |
| | | |
| | | #define LOGMCUD(...) __android_log_print(ANDROID_LOG_DEBUG,"MCU_DEBUG",__VA_ARGS__) // 定义LOGD类型 |
| | | |
| | | #define ENABLE_DEBUG_PROTOCOL |
| | | |
| | | #ifdef ENABLE_DEBUG_PROTOCOL |
| | | #define DEBUG(...) LOGD(__VA_ARGS__) |
| | | #else |
| | | #define DEBUG(...) |
| | | #endif |
| | | |
| | | #endif //JNI_LOG_H |
| | |
| | | #include "../jni_log.h" |
| | | #include "../common/serial_port.h" |
| | | |
| | | #define DEBUG(fmt, args...) LOGD("<mcu_if> <%s>: " fmt, __func__, ##args) |
| | | |
| | | #define MCU_UART UART_1 |
| | | |
| | | enum parse_status_t { |
| | |
| | | #include "driver_test.h" |
| | | #include "master/comm_if.h" |
| | | |
| | | #define DEBUG(fmt, args...) LOGD("<native-lib> <%s>: " fmt, __func__, ##args) |
| | | |
| | | static JavaVM *sg_jvm = NULL; |
| | | static jobject sg_obj = NULL; |
| | | |
| | |
| | | #include <stdlib.h> |
| | | #include <string.h> |
| | | |
| | | #define DEBUG(fmt, args...) LOGD("<parse_gps> <%s>: " fmt, __func__, ##args) |
| | | |
| | | typedef const uint8_t *ptr; |
| | | |
| | | static ptr skip1(ptr s, ptr e) |
| | |
| | | #include "../rtk_platform/platform.h" |
| | | #include "../native-lib.h" |
| | | |
| | | #define DEBUG(fmt, args...) LOGD("<rtk> <%s>: " fmt, __func__, ##args) |
| | | |
| | | #define RTK_MODULE_UART UART_0 |
| | | |
| | | #define PARSE_BUFF_SIZE 4096 |
| | |
| | | #include "../mcu/mcu_if.h" |
| | | #include "../utils/xconvert.h" |
| | | |
| | | #define DEBUG(fmt, args...) LOGD("<parse_net> <%s>: " fmt, __func__, ##args) |
| | | |
| | | using namespace std; |
| | | |
| | | #define PKT_HEAD_CHAR 0x7E |
| | |
| | | |
| | | #define PARSE_BUFF_SIZE 4096 |
| | | |
| | | const char *VK_REG = "platform_register"; |
| | | #define DEBUG(fmt, args...) LOGD("<platform> <%s>: " fmt, __func__, ##args) |
| | | |
| | | struct platformSocket { |
| | | char domain_name[32]; |
| | |
| | | |
| | | void InitPlatform(const uint8_t *phone, const char *domain_name, int port) |
| | | { |
| | | DEBUG("InitPlatform"); |
| | | |
| | | pthread_mutex_init(&platform_tx_mutex, NULL); |
| | | pthread_mutex_init(&events_mutex, NULL); |
| | | |
| | |
| | | pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);//detached |
| | | pthread_create(&pid, &attr, StatusListenThread, NULL); |
| | | |
| | | MA_ReqRtkPlatformConfig(); |
| | | AppTimer_add(ReqRtkPlatformConfigTimeout, D_SEC(2)); |
| | | MA_ReqRtkPlatformConfig(); |
| | | } |
| | | |
| | | static void ReqRtkPlatformConfigTimeout(union sigval sig) |
| | | { |
| | | AppTimer_delete(ReqRtkPlatformConfigTimeout); |
| | | MA_ReqRtkPlatformConfig(); |
| | | |
| | | AppTimer_add(ReqRtkPlatformConfigTimeout, D_SEC(2)); |
| | | MA_ReqRtkPlatformConfig(); |
| | | } |
| | | |
| | | void ConfigPlatform(const rtk_platform_cfg_t *p) |
| | |
| | | #include "../driver_test.h" |
| | | #include <vector> |
| | | |
| | | #define DEBUG(fmt, args...) LOGD("<park_bottom> <%s>: " fmt, __func__, ##args) |
| | | |
| | | using namespace std; |
| | | |
| | | enum { |
| | |
| | | |
| | | #include <vector> |
| | | |
| | | #define DEBUG(fmt, args...) LOGD("<turn_a90> <%s>: " fmt, __func__, ##args) |
| | | |
| | | using namespace std; |
| | | |
| | | enum { |
| | |
| | | |
| | | @Override |
| | | public void SendCmd(int cmd, String value) throws RemoteException { |
| | | Log.d(TAG, "RecvMsgFromMainProc cmd = " + String.format(" %04X ", cmd) + " value " + value); |
| | | MainProcMsgEntry(cmd, value); |
| | | } |
| | | }; |