diff options
author | Michal Skorupinski <m.skorupinsk@samsung.com> | 2018-08-17 14:54:20 +0200 |
---|---|---|
committer | Michal Skorupinski <m.skorupinsk@samsung.com> | 2018-08-30 15:28:03 +0200 |
commit | 4e68c88d6fe6c747f7fdfeba5542a446ffc5c691 (patch) | |
tree | 5a9a51731559687fc28b602529e8cc3ddb91e933 /inc/model | |
parent | b262cdb623cf292d99016801981d2e34d7b10f65 (diff) | |
download | gear-racing-controller-4e68c88d6fe6c747f7fdfeba5542a446ffc5c691.tar.gz gear-racing-controller-4e68c88d6fe6c747f7fdfeba5542a446ffc5c691.tar.bz2 gear-racing-controller-4e68c88d6fe6c747f7fdfeba5542a446ffc5c691.zip |
Connecting to a car
Change-Id: I48c9b4cb2e5e5fd1f05732a68fe68c1a3205ab16
Signed-off-by: Michal Skorupinski <m.skorupinsk@samsung.com>
Diffstat (limited to 'inc/model')
-rw-r--r-- | inc/model/model_base.h | 2 | ||||
-rw-r--r-- | inc/model/model_car_connection.h | 7 | ||||
-rw-r--r-- | inc/model/model_cloud_connection.h | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/inc/model/model_base.h b/inc/model/model_base.h index ada951b..cb6dab5 100644 --- a/inc/model/model_base.h +++ b/inc/model/model_base.h @@ -22,6 +22,8 @@ typedef enum _e_model_type { MODEL_TYPE_UPDATE, MODEL_TYPE_END, + MODEL_TYPE_FAIL, + MODEL_TYPE_WAIT, } e_model_type; #endif /* MODEL_MODEL_BASE_H_ */ diff --git a/inc/model/model_car_connection.h b/inc/model/model_car_connection.h index 8dbe64c..8a7773f 100644 --- a/inc/model/model_car_connection.h +++ b/inc/model/model_car_connection.h @@ -30,6 +30,11 @@ typedef void (*t_model_car_connection_update_cb)(s_model_car_connection_cb_data void model_car_connection_init(void); void model_car_connection_subscribe_event(t_model_car_connection_update_cb model_update_cb); void model_car_connection_unsubscirbe_event(); -void model_car_connection_connect(void); +void model_car_connection_model_state_change(void); + +void model_car_connection_start_connection(char *address, int port); +void model_car_connection_end_connection(void); +void model_car_connection_send_stering_data(float direction, float throttle); + #endif /* MODEL_MODEL_CAR_CONNECTION_H_ */ diff --git a/inc/model/model_cloud_connection.h b/inc/model/model_cloud_connection.h index 69b8779..98c4c60 100644 --- a/inc/model/model_cloud_connection.h +++ b/inc/model/model_cloud_connection.h @@ -34,7 +34,7 @@ void model_cloud_connection_unsubscirbe_event(void); void model_cloud_connection_subscribe_reconnect(t_model_cloud_connection_update_cb reconnect_cb); bool model_cloud_connection_player_name_set(const char *player_name); void model_cloud_connection_try_reconnect(void); -void model_cloud_connection_connect(void); +void model_cloud_connection_model_state_change(void); void model_cloud_connection_get_names(void); #endif /* MODEL_MODEL_CLOUD_CONNECTION_H_ */ |