Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ros_lib_kinetic
Diff: HLComms.h
- Revision:
- 17:bbaf3e8440ad
- Parent:
- 12:595ed862e52f
- Child:
- 19:e5acb2183d4e
diff -r 1e2804a4e5bd -r bbaf3e8440ad HLComms.h
--- a/HLComms.h Tue Sep 11 10:10:26 2018 +0000
+++ b/HLComms.h Thu Oct 04 15:27:15 2018 +0000
@@ -37,8 +37,8 @@
void close_server(void);
int receive_message(void);
msg_format process_message(void);
- void make_message(double *dblTime);
- int send_message(void);
+ int send_duration_message(double *dblTime);
+ int send_sensor_message(double positions[], double pressures[]);
private:
@@ -46,6 +46,10 @@
unsigned char recv_buffer[400]; //1024
char send_buffer[400]; //65
+ Mutex recv_mutex;
+ Mutex send_mutex;
+
+ int send_message(void);
};