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.
Diff: monitor.h
- Revision:
- 0:7f0d0acde96b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/monitor.h Tue Apr 30 19:35:08 2019 +0000 @@ -0,0 +1,29 @@ +#ifndef MONITOR_H +#define MONITOR_H + +#include "mbed.h" + +//definitions +#define DEVS 2 +#define DEBUG 1 +#define SAMPLES 5 + +typedef struct _xbee{ + uint16_t id; + float temp; + float volt; + float amps; + float vibs; + uint8_t eflag; //error flag +} xbee; + +//globals +extern Serial pc; +extern Serial coordinator; + +//functions +float get_temp(uint8_t MSB, uint8_t LSB); +float get_volt(uint8_t MSB, uint8_t LSB); +float get_amps(uint8_t MSB, uint8_t LSB); +float get_vibs(uint8_t MSB, uint8_t LSB); +#endif \ No newline at end of file