altoslib: Add 'motor_pressure' data value This value tracks the internal pressure of a motor in Pa. Signed-off-by: Keith Packard <keithp@keithp.com>
altosui: Report baro ground alt for 'Pad Altitude' when GPS missing The 'Pad Altitude' field in the pad tab of AltosUI was originally one of three fields designed to report the GPS position of the pad. When TeleMini was added, the code was updated to separate the lat/lon from altitude display, but the pad_alt field in AltosState used for that was still only computed from GPS data. This fix gets rid of the confusing 'pad_alt' field in AltosState and has the 'Pad Altitude' data select either GPS ground altitude or baro ground altitude, depending on whether GPS data is available. signed-off-by: Keith Packard <keithp@keithp.com>
Bump java lib versions in preparation for 1.9.2 Quite a few changes; let's bump the version so we don't end up with the wrong version on some machine. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Report raw baro height instead of kalman filtered value Report raw sensor values to the user during flight. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Report whether GPS data contains new location/sat info Use this to limit time series additions to fresh data. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Move 'state_name' API to AltosCalData That's where state lives. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Store IMU accel ground data in converted values For some reason, this value was in sensor units. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Reset consecutive GPS count when GPS bad This makes sure we get back to 'GPS not ready' when GPS goes unlocked. Signed-off-by: Keith Packard <keithp@keithp.com>
Bump java lib versions to 13 Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Move temp GPS API from cal_data to data_listener This makes the API more consistent, and means that the listener is responsible for mangaing the temp gps state. In particular, the AltosDataListener set_gps API now calls the cal_data function. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib,altosuilib,altosui: log_format/device_type TeleGPS selects stateless When the device being analyzed has no flight state, we want to use the 'stateless' state so that the UI can display reasonable information. This bit was lost in the recent AltosState shuffle and this patch brings it back. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Remove debug stack dump from AltosState An empty AltosState is allocated when parsing JSON data; it's not a mistake. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Clean up quaternion and rotation interfaces Export euler to quaternion (instead of half_euler). Provide angles to rotate rather than rates and time. Add comments to quaternion and rotation code. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Make cal_data private in AltosDataListener This way we can create it as needed. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib,altosuilib: Bump library version numbers The API and ABI have changed a bit since 1.7 Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Initialize new imu/mag values. Remove stale imu/mag objects. AltosState no longer has imu and mag objects, instead it just holds the values now. Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Remove unused 'ground_rotation' from AltosState Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib: Compute orientation from eeprom data files This was lost in the AltosFlightSeries transformation. Signed-off-by: Keith Packard <keithp@keithp.com>
telegps: Get telegps application working again Many minor API tweaks Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid: Deal with AltosState changes cal data split out from altos state. altos state needed to have no-arguments constructor for JSON code. Also messed with voice to make it stay quiet during app startup. Signed-off-by: Keith Packard <keithp@keithp.com>