Stacey Sheldon
49c153003c
hid joystick: use linearly scaled channels
...
Scales each channel only based on max and min calibrated values.
The neutral value is now ignored so the joystick sees a linear
range between min and max.
This is particularly useful to allow the full range of values for
throttle to be passed through to the joystick.
2012-08-10 23:36:06 -04:00
Stacey Sheldon
07fde38887
hid joystick: factor out min/max range from report items
2012-08-10 23:29:34 -04:00
James Cotton
cab661e94b
AndroidGCS: Update the controller gadget to the newer style updates
2012-08-10 16:16:39 -05:00
James Cotton
9985910969
AndroidGCS TelemetryMonitor: Now that transactions are working more reliably we
...
can emit the connected signal at the end of fetching all the objects.
2012-08-10 16:11:20 -05:00
James Cotton
38117f6e69
AndroidGCS Telemetry: Telemetry no longer enqueues identical object
...
transactions multiple times so only the most recent will occur. Since it
doesn't enqueue the data the end behavior to the UAV should be identical.
Also renamed processObjectUpdates to enqueueObjectUpdates to make it more
intuitive.
2012-08-10 15:58:52 -05:00
James Cotton
1d361a53cd
AndroidGCS Telemetry: Make sure when telemetry changes settings it removes it's
...
listeners before adding more
2012-08-10 15:27:43 -05:00
James Cotton
de26c3297e
AndroidGCS Telemetry: Get rid of a tier of redirection through annoymous
...
classes that was legacy from the GCS port.
2012-08-10 15:22:56 -05:00
James Cotton
6ebf4fe87c
AndroidGCS UAVTalk: Pretty thorough clean up focused on how transactions are
...
handled at the UAVTalk level where there can only be one pending transaction on
the wire.
2012-08-10 14:18:41 -05:00
James Cotton
6b9b49734e
Check there is an active telemetry before trying to disconnect it
2012-08-10 10:21:28 -05:00
James Cotton
1bc8553658
Small typo in telemetry merge.
2012-08-10 10:20:45 -05:00
James Cotton
82637ff8ab
Now the callbacks disconnect system alarms shouldn't need to check the fields
...
are not null
2012-08-10 10:20:21 -05:00
James Cotton
d14ad1c354
Check in some missing artwork
2012-08-10 10:15:32 -05:00
James Cotton
d429cc200c
Merge branch 'sim_android_telemetry' into sim_android
...
Conflicts:
androidgcs/src/org/openpilot/androidgcs/telemetry/OPTelemetryService.java
2012-08-10 10:12:48 -05:00
James Cotton
a8fa1c6b0d
Merge branch 'android' into sim_android
2012-08-10 10:10:47 -05:00
James Cotton
29d5365f0a
AndroidGCS: More refactoring of ObjectManagerActivity. Now the updates are
...
disconnected on pause and reestabilished on resume. This only happens within
an onConnected/onDisconnected life cycle.
2012-08-10 10:04:22 -05:00
James Cotton
176922f41c
AndroidGCS: Also make the map disconnect its listeners.
2012-08-10 10:04:17 -05:00
James Cotton
749d695f4d
AndroidGCS: ObjectManagerActivity maintains a list of objects it is getting
...
updates from and disconnects them on onStop(). This should probably move to
onPause / onResume
2012-08-10 10:04:11 -05:00
James Cotton
4bcb5437cd
AndroidGCS: More refactoring of ObjectManagerActivity. Now the updates are
...
disconnected on pause and reestabilished on resume. This only happens within
an onConnected/onDisconnected life cycle.
2012-08-10 09:48:10 -05:00
James Cotton
4594a59155
AndroidGCS: Also make the map disconnect its listeners.
2012-08-10 08:53:29 -05:00
James Cotton
56dfa62682
AndroidGCS: ObjectManagerActivity maintains a list of objects it is getting
...
updates from and disconnects them on onStop(). This should probably move to
onPause / onResume
2012-08-10 08:49:40 -05:00
James Cotton
1b8db4eeec
AndroidGCS: When priority transmit queue is full this is not a reason to crash.
2012-08-10 02:18:30 -05:00
James Cotton
4bcac07c8c
AndroidGCS: Because right now the object updated callbacks are not diconnected
...
when an activity goes away we need to check the view is valid when processing
the object callbacks.
2012-08-10 02:17:13 -05:00
James Cotton
92209f8e42
AndroidGCS bugfix: Missed a break in a case statement.
2012-08-10 02:17:13 -05:00
James Cotton
5eabb1777d
AndroidGCS: Whitespace fixing for TelemetryMonitor
2012-08-10 02:17:12 -05:00
James Cotton
78469aa6a4
AndroidGCS: Use a WeakReference to stop the OPTelemetryService handle leaking.
2012-08-10 02:17:12 -05:00
James Cotton
37c4880fba
AndroidGCS: Unregister the activity broadcast receiver onStop(). Create it
...
onStart() instead.
2012-08-10 02:15:38 -05:00
James Cotton
57b91b7763
AndroidGCS: UAVTalk no longer extends Observable since there is only one
...
listener anyway we use a setListener pattern.
2012-08-10 02:15:37 -05:00
James Cotton
f13f977177
Fix: Revert change to ObjectBrowser
2012-08-10 02:15:37 -05:00
James Cotton
7a42c7b10e
AndroidGCS: Start supporting NAK and having uavTalk emit a transaction failed
...
and succeeded call. Had to change the mask on the AndroidGCS side to match the
FC side.
2012-08-10 02:15:37 -05:00
James Cotton
fcff84007e
Remove old OPTelemetryService
2012-08-10 02:14:44 -05:00
James Cotton
1c60d4b856
AndroidGCS: When priority transmit queue is full this is not a reason to crash.
2012-08-10 02:09:58 -05:00
James Cotton
7c6b81517e
AndroidGCS: Somehow multiple disconnects were triggered.
2012-08-10 02:09:32 -05:00
James Cotton
91a8186e54
AndroidGCS: Because right now the object updated callbacks are not diconnected
...
when an activity goes away we need to check the view is valid when processing
the object callbacks.
2012-08-10 02:01:27 -05:00
James Cotton
dec044d0fa
AndroidGCS bugfix: Missed a break in a case statement.
2012-08-10 02:00:55 -05:00
James Cotton
4313f1a3cc
AndroidGCS: Whitespace fixing for TelemetryMonitor
2012-08-10 01:12:20 -05:00
James Cotton
0100b2a085
AndroidGCS: Use a WeakReference to stop the OPTelemetryService handle leaking.
2012-08-10 01:12:20 -05:00
James Cotton
54e239d6cb
AndroidGCS: Unregister the activity broadcast receiver onStop(). Create it
...
onStart() instead.
2012-08-10 01:12:20 -05:00
James Cotton
d46a865229
AndroidGCS: UAVTalk no longer extends Observable since there is only one
...
listener anyway we use a setListener pattern.
2012-08-09 23:26:36 -05:00
James Cotton
3076a81347
Fix: Revert change to ObjectBrowser
2012-08-09 23:24:36 -05:00
James Cotton
5443dbb4ca
AndroidGCS: Start supporting NAK and having uavTalk emit a transaction failed
...
and succeeded call. Had to change the mask on the AndroidGCS side to match the
FC side.
2012-08-09 23:23:38 -05:00
James Cotton
c7abc42c5e
Remove unused TelemetryManager file
2012-08-08 22:58:00 -05:00
James Cotton
fcb3e8c152
AndroidGCS: Check in a FragmentTester class and add it to the home page.
...
Use it to the beginnings of the MapPosition fragment.
2012-08-08 19:15:03 -05:00
James Cotton
f530702ce9
Merge branch 'android' into sim_android
...
Conflicts:
androidgcs/AndroidManifest.xml
androidgcs/res/layout/gcs_home.xml
androidgcs/res/layout/pfd.xml
androidgcs/res/layout/system_alarms.xml
androidgcs/src/org/openpilot/androidgcs/AttitudeView.java
androidgcs/src/org/openpilot/androidgcs/BluetoothDevicePreference.java
androidgcs/src/org/openpilot/androidgcs/CompassView.java
androidgcs/src/org/openpilot/androidgcs/Controller.java
androidgcs/src/org/openpilot/androidgcs/HomePage.java
androidgcs/src/org/openpilot/androidgcs/Logger.java
androidgcs/src/org/openpilot/androidgcs/ObjectBrowser.java
androidgcs/src/org/openpilot/androidgcs/ObjectEditor.java
androidgcs/src/org/openpilot/androidgcs/ObjectManagerActivity.java
androidgcs/src/org/openpilot/androidgcs/Preferences.java
androidgcs/src/org/openpilot/androidgcs/SystemAlarmActivity.java
androidgcs/src/org/openpilot/androidgcs/TelemetryWidget.java
androidgcs/src/org/openpilot/androidgcs/UAVLocation.java
androidgcs/src/org/openpilot/uavtalk/Telemetry.java
androidgcs/src/org/openpilot/uavtalk/TelemetryMonitor.java
androidgcs/src/org/openpilot/uavtalk/UAVDataObject.java
androidgcs/src/org/openpilot/uavtalk/UAVMetaObject.java
androidgcs/src/org/openpilot/uavtalk/UAVObject.java
androidgcs/src/org/openpilot/uavtalk/UAVObjectField.java
androidgcs/src/org/openpilot/uavtalk/UAVObjectManager.java
androidgcs/src/org/openpilot/uavtalk/UAVTalk.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/AltitudeHoldSettings.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/FirmwareIAPObj.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/FlightBatterySettings.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/FlightBatteryState.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/FlightStatus.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/HomeLocation.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/HwSettings.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/ManualControlSettings.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/OveroSyncStats.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/PositionActual.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/RevoCalibration.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/SystemAlarms.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/TaskInfo.java
androidgcs/src/org/openpilot/uavtalk/uavobjects/UAVObjectsInitialize.java
flight/Modules/GPS/GPS.c
2012-08-08 15:50:28 -05:00
James Cotton
1740bef847
AndroidGCS: Delete zip file of android icons
2012-08-08 14:25:52 -05:00
James Cotton
7cca5696a2
Merge remote-tracking branch 'origin/pt/boardbased_ui_limits' into next
2012-08-08 14:11:24 -05:00
James Cotton
06a6e367b0
Merge remote-tracking branch 'origin/hyper/OP-661' into next
2012-08-08 13:49:48 -05:00
James Cotton
41a46258be
AndroidGCS: Change Sambas to not crash in AVD for bluetooth or if there are no
...
devices.
2012-08-08 13:43:09 -05:00
James Cotton
dd0a5b2cf2
AndroidGCS: Make home page buttons more vertical to work better on phones.
...
Maybe someone could make these automatically space out?
2012-08-08 13:17:30 -05:00
James Cotton
11a08c186c
AndroidGCS: Refactor the Fragments into their own package to keep the UI
...
"components" segregated. Is this good practice though? It means making a lot
of functions for the API between ObjectManagerActivity and Fragment public.
2012-08-08 13:14:38 -05:00
James Cotton
95dfc88f95
AndroidGCS: Move the PFD functionality into a fragment and then
...
programmatically instantiate that from the test PFD activity
2012-08-08 13:14:01 -05:00