File tree Expand file tree Collapse file tree
examples/Example6_Teleplot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,17 +20,25 @@ void setup(void)
2020 Printer::teleplotUDPEnable = Enable::ENABLE_TRUE;
2121}
2222
23- int32_t cpt = 0 ;
23+ static int32_t cpt = 0 ;
2424Point point = Point(0 , 0 );
25+ PoseF pose = PoseF(0 .0f , 0 .0f , 0 .0f );
26+ int64_t timeSinceBoot = 0 ;
2527
2628void loop (void )
2729{
2830 // This will be send over Wifi if enable and also on Serial
2931 println (" Hello World %i times !" , cpt++);
3032 point.x = cpt + cpt;
3133 point.y = cpt * cpt;
34+ pose.x = cpt / 3 .0f ;
35+ pose.y = cpt * 1 .2f ;
36+ pose.h = pose.x + pose.y ;
3237 delay (1000 );
38+ timeSinceBoot = esp_timer_get_time ();
3339
40+ teleplot (" time" , timeSinceBoot);
3441 teleplot (" cpt" , cpt);
3542 teleplot (" point" , point);
43+ teleplot (" pose" , pose);
3644}
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ Format Specifier
237237 if (teleplotUDP.IsInitialized ())
238238 teleplotUDP.update (varName.c_str (), var);
239239 else
240- println (" >" + varName + " : " + String ( var));
240+ println (" >%s:%f " , varName, var);
241241 }
242242
243243 void teleplot (const String &varName, Point point)
You can’t perform that action at this time.
0 commit comments