Skip to content
Snippets Groups Projects
Verified Commit c89e05b5 authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

feat: placeholder for module 2 angles

parent fec95f41
No related branches found
No related tags found
No related merge requests found
......@@ -104,8 +104,10 @@ void loop() {
// [TEST] Write sine values for visualization in serial-studio
freq = 10;
float angleL = sin(millis()*1000*freq*2*PI);
float angleR = cos(millis()*1000*freq*2*PI);
float angleL1 = sin(millis()*1000*freq*2*PI);
float angleR1 = cos(millis()*1000*freq*2*PI);
float angleL2 = -angleL1;
float angleR2 = -angleL2;
// Print all useful data to serial for processing in serial-studio
Serial.print("/*"); // Frame start sequence [/*]
......@@ -117,9 +119,13 @@ void loop() {
Serial.print(",");
Serial.print(escVal); // %4, Value sent to ESCs [-]
Serial.print(",");
Serial.print(angleL); // %5, Left wing angle [deg]
Serial.print(angleL1); // %5, Module 1 left wing angle [deg]
Serial.print(",");
Serial.print(angleR); // %6, Right wing angle [deg]
Serial.print(angleR1); // %6, Module 1 right wing angle [deg]
Serial.print(",");
Serial.print(angleL2); // %7, Module 2 left wing angle [deg]
Serial.print(",");
Serial.print(angleR2); // %8, Module 2 right wing angle [deg]
Serial.println("*/"); // Frame finish sequence [*/]
//delay(5); // Reduce number of data to output
}
......
......@@ -101,7 +101,41 @@
"widget": ""
}
],
"title": "Wing angles",
"title": "Module 1 - Wing Angles",
"widget": "multiplot"
},
{
"datasets": [
{
"alarm": 0,
"fft": false,
"fftSamples": 1024,
"graph": false,
"led": false,
"log": false,
"max": 0,
"min": 0,
"title": "Left",
"units": "deg",
"value": "%7",
"widget": ""
},
{
"alarm": 0,
"fft": false,
"fftSamples": 1024,
"graph": false,
"led": false,
"log": false,
"max": 0,
"min": 0,
"title": "Right",
"units": "deg",
"value": "%8",
"widget": ""
}
],
"title": "Module 2 - Wing Angles",
"widget": "multiplot"
}
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment