1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-04 12:24:11 +01:00
Commit Graph

283 Commits

Author SHA1 Message Date
James Cotton
6edafd2c5f Create a UAVTalk service that is called from the object browser 2012-08-02 10:40:37 -05:00
James Cotton
38213de9aa Make the UAVTalk object process one byte per call so it can be embedded in
another loop.  Also clean up some warnings.
2012-08-02 10:40:37 -05:00
James Cotton
74ea0e5ac2 Make it easy to enable or disable logging in separate modules 2012-08-02 10:40:37 -05:00
James Cotton
77910a93ab Update display to show connected icon 2012-08-02 10:40:37 -05:00
James Cotton
bd0a599e96 Works on Nook, but recursive loop too deep in registering objects 2012-08-02 10:40:36 -05:00
James Cotton
06f583ff75 Fixed some timer issues. Got connection with this. 2012-08-02 10:40:36 -05:00
James Cotton
03b9bbbb8a Fix the CRC calculation for java sending 2012-08-02 10:40:36 -05:00
James Cotton
e12cef6b4b Little updates 2012-08-02 10:40:36 -05:00
James Cotton
621d31a520 Unit test for telemetry 2012-08-02 10:40:36 -05:00
James Cotton
7b20773100 Fixed bug in object signals that stopped updates sending. Various tweaks. 2012-08-02 10:40:36 -05:00
James Cotton
55e0834051 Changes to TelemetryMonitor, ready for testing 2012-08-02 10:40:36 -05:00
James Cotton
cb5e690de0 Most of the work on Telemetry.java as well as lots of signals for various
object events
2012-08-02 10:40:36 -05:00
James Cotton
3d7f4e2273 A few more synchronized statements and deep cloning of objects 2012-08-02 10:40:35 -05:00
James Cotton
b0f8267588 Initial start of the telemetry system which interfaces between UAVTalk and the
ObjectManager/Objects
2012-08-02 10:40:35 -05:00
James Cotton
01e9d1a472 Add isMetadata() instead of testing whether dynamic cast fails 2012-08-02 10:40:35 -05:00
James Cotton
1ffe0691f5 Test case for the callbacks 2012-08-02 10:40:35 -05:00
James Cotton
97b5f758a0 Made a lot of critical functions synchronized to block race conditions
(essentialy implements a mutex locker for that object).  Also added callbacks
to UAVObjects for unpacked and updated.  More to come.  Finally test case that
checks that we get FlightStatus through UAVTalk (i.e. that the aircraft is
talking).
2012-08-02 10:40:35 -05:00
James Cotton
c7f57dffe3 Updates to various objects 2012-08-02 10:40:35 -05:00
James Cotton
6158e19df1 Initial implementation of UAVTalk protocol and a test platform for it and the
UAVObjectManager
2012-08-02 10:40:35 -05:00
James Cotton
3a71d26604 Some cosmetic changes, also initialize the Metadata properly 2012-08-02 10:40:35 -05:00
James Cotton
6758d5c598 Make the initial values for enums be the string. Make setValue accept
numerical or string constants for enums.  Only returns a string though.
2012-08-02 10:40:34 -05:00
James Cotton
72de0c622a Removed various debugging outputs and exceptions for now (will add back in a
more principled manner later).  Also updated the auto generated code.
2012-08-02 10:40:34 -05:00
James Cotton
b98bdb9be0 More updates to the java objects. Also checking in the auto generated code for
now to make things easier.
2012-08-02 10:40:34 -05:00
James Cotton
5220ddc201 Added unit tests 2012-08-02 10:40:34 -05:00
James Cotton
5aa8eb522a Make object store with the minimal amount of space and deal with unsigned
values
2012-08-02 10:40:34 -05:00
James Cotton
f41980c276 Remove some debugging lines, also use Number interface instead of explicit
Byte, Integer, Short etc in setValue/getValue
2012-08-02 10:40:34 -05:00
James Cotton
a2e93f1971 More work on the java UAVObject implementation 2012-08-02 10:40:33 -05:00
James Cotton
1c2eb1bf22 More updates to UAVObject and Field for android app 2012-08-02 10:40:33 -05:00
James Cotton
b5e1d3bf29 Some changes to the object field to get it to initialze the array to be the
right length
2012-08-02 10:40:33 -05:00
James Cotton
180f87dae5 Import of UAVObjectField object. This differs a bit from the GCS
implementation in that the data is stored within the field instead of being
packed back into a continugious memory region.  This is because java doesn't
allow casting to struct so the memory access isn't a useful feature.
2012-08-02 10:40:33 -05:00
James Cotton
0abd2ee671 Continuing to work on the java code to be more consistent with GCS code 2012-08-02 10:40:33 -05:00
James Cotton
8d7dc0eab7 Trying to get eclipse project right 2012-08-02 10:40:33 -05:00
James Cotton
d06b40ea29 Initial import of my androidgcs framework 2012-08-02 10:39:39 -05:00