Luka Slapnik / sbus_decode1

Dependents:   CyberbotV1

Files at this revision

API Documentation at this revision

Comitter:
sshogo
Date:
Fri Jul 05 10:54:41 2019 +0000
Parent:
7:0a43fd370575
Child:
9:0c412933b84f
Commit message:
fix convert

Changed in this revision

SBUS.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SBUS.cpp	Sat Jun 29 02:54:40 2019 +0000
+++ b/SBUS.cpp	Fri Jul 05 10:54:41 2019 +0000
@@ -109,7 +109,7 @@
                 switchValue[i] = Low;
                 break;
             default:
-                switchValue[i] = channel[i + 3] / 1904.0f;
+                switchValue[i] = 3;
                 break;
         }
     }