8#include "pico/stdlib.h"
21std::array<std::string, NMEA_MAX_REPLIES>
replies;
24 gps.writer().set([](
const std::string& s) ->
void {
write(s); });
25 gps.reader().set([](std::string& s) ->
void {
read(s); });
44 printf(
"+-- start --+\r\n");
47 printf(
"GLL valid: %s.\r\n",
valid ?
"yes" :
"no");
48 printf(
reply.c_str());
51 printf(
"GSV valid: %s. count: %u.\r\n",
valid ?
"yes" :
"no",
count);
53 printf(s.c_str()); });
56 printf(
"GSA valid: %s. count: %u.\r\n",
valid ?
"yes" :
"no",
count);
58 printf(s.c_str()); });
61 printf(
"GGA valid: %s.\r\n",
valid ?
"yes" :
"no");
62 printf(
reply.c_str());
65 printf(
"VTG valid: %s.\r\n",
valid ?
"yes" :
"no");
66 printf(
reply.c_str());
69 printf(
"RMC valid: %s.\r\n",
valid ?
"yes" :
"no");
70 printf(
reply.c_str());
84 printf(
"+-- end --+\r\n\r\n");
Driver class for ST Teseo IC.
void read(::std::string &s)
void write(const ::std::string &s)
std::array< std::string, NMEA_MAX_REPLIES > replies