with 36errors
Dependencies: MTS-Serial libxDot-dev-mbed5-deprecated
Fork of Dot-AT-Firmware by
CommandTerminal/CmdSnr.cpp@18:75cd82d6298c, 2017-07-09 (annotated)
- Committer:
- faendder
- Date:
- Sun Jul 09 23:37:23 2017 +0000
- Revision:
- 18:75cd82d6298c
- Parent:
- 14:f9a77400b622
i have 36 errors but i dont now how fixit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mike Fiore |
1:e52ae6584f1c | 1 | #include "CmdSnr.h" |
Mike Fiore |
1:e52ae6584f1c | 2 | |
Mike Fiore |
14:f9a77400b622 | 3 | CmdSnr::CmdSnr() : |
Mike Fiore |
14:f9a77400b622 | 4 | Command("Signal To Noise Ratio", "AT+SNR", "Display signal to noise ratio of received packets: last, min, max, avg in dB", "(-20.0-20.0),(-20.0-20.0),(-20.0-20.0),(-20.0-20.0)") |
Mike Fiore |
1:e52ae6584f1c | 5 | { |
Mike Fiore |
1:e52ae6584f1c | 6 | _queryable = true; |
Mike Fiore |
1:e52ae6584f1c | 7 | } |
Mike Fiore |
1:e52ae6584f1c | 8 | |
Mike Fiore |
1:e52ae6584f1c | 9 | uint32_t CmdSnr::action(std::vector<std::string> args) |
Mike Fiore |
1:e52ae6584f1c | 10 | { |
Mike Fiore |
14:f9a77400b622 | 11 | mDot::snr_stats stats = CommandTerminal::Dot()->getSnrStats(); |
Mike Fiore |
14:f9a77400b622 | 12 | CommandTerminal::Serial()->writef("%d.%d, %d.%d, %d.%d, %d.%d\r\n", stats.last / 10, abs(stats.last % 10), stats.min / 10, abs(stats.min % 10), stats.max / 10, abs(stats.max % 10), stats.avg / 10, abs(stats.avg % 10)); |
Mike Fiore |
1:e52ae6584f1c | 13 | |
Mike Fiore |
1:e52ae6584f1c | 14 | return 0; |
Mike Fiore |
1:e52ae6584f1c | 15 | } |