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: FreePilot PinDetect mbed-src
Fork of FreePilot_V2-2 by
Diff: base/base.cpp
- Revision:
- 46:d7d6dc429153
- Parent:
- 42:854d8cc26bbb
- Child:
- 47:d3123bb4f673
--- a/base/base.cpp Tue Mar 10 23:14:18 2015 +0000
+++ b/base/base.cpp Sat Mar 14 01:01:19 2015 +0000
@@ -51,6 +51,7 @@
double a_zBias;
bool Authenticated = 0;
+bool freepilot_v2 = true;
char tx_line[80];
void Dispatch(char* line, bool config /* = false */)
@@ -99,6 +100,14 @@
{
tcenter = atof(Data[1]);
// SetFilter(phaseadv,tcenter, lookaheadtime, scale, fgain );
+ }
+ else if(strcmp(Data[0], "$V2,1") == 0)
+ {
+ freepilot_v2 = true;
+ }
+ else if(strcmp(Data[0], "$V2,0") == 0)
+ {
+ freepilot_v2 = false;
}
else if(strcmp(Data[0], "$FG") == 0)
{
