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: mbed WDT MODSERIAL BME280
BMAG Class Reference
A BMAG string handling class. More...
#include <BMAG.h>
Public Member Functions | |
BMAG () | |
The default constructor. No arguments are needed for this class ever. | |
void | parseBMAGString (string str) |
Parser method. Parsing the GSM-19T RS232 strings. | |
void | setMagTimeStr (string magT) |
magTimeString string setting method. | |
void | setMagNTStr (string magNT) |
magMeasurement string setting method. | |
void | setMagSqStr (string magSq) |
magMeasurementQuality string setting method. | |
string | getMagTimeStr (void) |
Mag time data field string getter method. | |
string | getMagNTStr (void) |
Mag nanoTesla measurement data field string getter method. | |
string | getMagSq (void) |
Mag measurement quality data field string getter method. | |
string | getColumn (string str, char n) |
mag string column search method. |
Detailed Description
A BMAG string handling class.
This class is used to handle / parse the default data logging string sent via rs232 to an external device from a GSM-19T magnetometer unit. Methods of this class parse the received rs232 string and convert them into individual data strings. (magTime, magnTMeasurement, and magMeasurementQuality)
Definition at line 17 of file BMAG.h.
Constructor & Destructor Documentation
BMAG | ( | ) |
Member Function Documentation
string getColumn | ( | string | str, |
char | n | ||
) |
mag string column search method.
Returns the desired data column of the original GSM-19T measurement string.
- Parameters:
-
str Iriginal GSM-19T measurement string n Desired data column, 0 indexed. Eg. First column(Time): n = 0. Second column(mag measurement in nT): n = 1. Third column(Measurement Quality): n = 2.
- Returns:
- desired data column as string.
string getMagNTStr | ( | void | ) |
string getMagSq | ( | void | ) |
string getMagTimeStr | ( | void | ) |
void parseBMAGString | ( | string | str ) |
void setMagNTStr | ( | string | magNT ) |
void setMagSqStr | ( | string | magSq ) |
Generated on Wed Jul 13 2022 08:04:14 by
