Sam Cook
d6dc1f7bd8
Fix invocation of sendFakeLatLong() after 802218b77b
.
...
Fix spelling in sendFakeLatLongThatAllowsHeadingDisplay function name.
2015-05-15 12:32:03 +01:00
Dominic Clifton
802218b77b
Remove some logic and boolean arguments from FrSky GPS code. See
...
d58387c
PR #855
2015-05-14 20:04:52 +01:00
Sam Cook
6776f9c02d
Send a (non-zero) fake location when GPS isn't present to enable display of compass heading on OpenTX
2015-05-08 18:20:56 +01:00
Dominic Clifton
69292fc966
FrSky GPS code size and de-duplication improvements.
...
I noticed this after merging 593db0ce1e
.
If the telemetry screen shows no fix when the fix is lost then perhaps
the intention was to make localGPS_coord static in the original code,
but if GPS_coord retains it's value when a fix is lost then this is ok,
please test!
2015-05-07 13:51:03 +01:00
Sam Cook
593db0ce1e
Fix compilation errors when GPS is not #defined
2015-05-07 02:16:21 +01:00
Dominic Clifton
0ecf8be233
Merge pull request #743 from SamuelBrucksch/master
...
Fixed speed according to frsky protocol
2015-04-14 20:17:59 +01:00
Dominic Clifton
21191c0e14
Merge pull request #762 from bhuism/master
...
fix voltage calculation for smartport telemetry
2015-04-14 20:14:01 +01:00
Dominic Clifton
f28158a5a7
Cleanup debug code.
2015-04-14 13:59:11 +01:00
Bas Huisman
65b6041d1f
fix voltage calculation for smartport telemetry
2015-04-13 10:14:55 +02:00
Samuel Brucksch
c8a33ab1db
Update frsky.c
...
Changed to a faster calculation
2015-04-08 22:44:44 +02:00
Samuel Brucksch
8f165e5224
Update frsky.c
...
fixed compiling issue
2015-04-08 10:48:22 +02:00
Samuel Brucksch
07294f4d3a
Update frsky.c
...
fixed cast
2015-04-08 09:32:08 +02:00
Samuel Brucksch
ce4379af47
Update frsky.c
...
changed speed from cm/s to knots
2015-04-08 09:26:32 +02:00
Dominic Clifton
7d9fc2699a
Merge branch 'PA_update1' of git://github.com/Pierre-A/cleanflight into Pierre-A-PA_update1
...
Conflicts:
src/main/config/config.c
src/main/io/serial_cli.c
src/main/telemetry/hott.c
src/main/telemetry/telemetry.h
2015-04-07 20:33:03 +01:00
Dominic Clifton
7efdcf13e3
Merge pull request #699 from pinkywafer/frsky_RPM_telemetry_fix
...
FrSky RPM Telemetry Motor_Stop Bugfix
2015-04-01 22:09:36 +01:00
pinkywafer
7220365575
RPM_Motor_Stop_Bugfix
...
using calculateThrottleStatus, send 0 as RPM when THROTTLE_LOW and
MOTOR_STOP
2015-03-31 19:06:15 +01:00
Petr Ledvina
3faa8a200b
Answer only on one SmartPort ID
...
Receiver polls all active IDs, then tries one inactive. Answering multiple IDs will starve other devices on bus and it will increase probability of address collision.
With 1 active address poll interval is ~24ms
2015-03-31 15:01:36 +02:00
Nicholas Sherlock
3c543d36c8
Change port mode MODE_BIDIR into a port option instead
2015-03-19 13:42:13 +13:00
Nicholas Sherlock
159f57f583
Add new serial port options field (inversion, stop bits, etc)
2015-03-19 12:56:11 +13:00
Dominic Clifton
4cf6fe6571
Rename 'frsky_hiprec_vfas' to 'frsky_vfas_precision' and introduce enum
...
for FRSKY_VFAS_PRECISION_LOW and FRSKY_VFAS_PRECISION_HIGH.
Improves naming for humans. 'hiprec' was meaningless and
untranslatable. See
https://cleancoders.com/episode/clean-code-episode-2/show
2015-03-13 23:49:24 +01:00
Dominic Clifton
d82fc6b9be
Merge pull request #477 from projectkk2glider/projectkk2glider/issue_316_frsky_voltages
...
Fixes #316 : better arithmetics for FrSky CELL voltages, VFAS battery vol...
2015-03-13 23:40:24 +01:00
Dominic Clifton
bce6c6722c
Merge branch 'port-changes' of https://github.com/ledvinap/cleanflight into ledvinap-port-changes
...
Conflicts:
src/main/blackbox/blackbox.c
src/main/io/serial.c
2015-03-09 22:23:04 +01:00
Damjan Adamic
517d38c94f
Re #316 : Battery voltage calculation converted to integer arithmetic, unit tests updated to account for proper rounding of voltage
...
Added frsky_hiprec_vfas configuration option that selects how VFAS is sent
Better arithmetics for FrSky CELL voltages, VFAS battery voltage send with other ID that allows 0.1V resolution
2015-03-09 20:43:04 +01:00
Pierre-A
3a8725997b
update of the corrections
2015-03-05 20:07:48 +01:00
Dominic Clifton
d51a2fbd88
Fix release of MSP port when MSP and MSP telemetry are used on the same
...
port.
2015-03-05 11:04:25 +00:00
Pierre-A
af2cd4087a
new version including corrections
2015-03-04 15:53:09 +01:00
Dominic Clifton
946f65601f
Cleanup some enum values - using topic_type instead of type_topic.
2015-03-03 22:35:40 +00:00
Dominic Clifton
a156d915f4
Only index into the configurable baud rate list when needed.
2015-03-03 17:30:35 +00:00
Dominic Clifton
dca984ff88
Merge branch 'master' into serial-cleanup
...
Conflicts:
src/main/telemetry/hott.c
2015-03-03 17:21:43 +00:00
Dominic Clifton
94fdaed8d2
Merge pull request #428 from Pierre-A/update_pa
...
HoTT check serial data improvement
2015-03-03 10:58:33 +00:00
Dominic Clifton
1a8500c768
Transition to new per-port & per-function baud rate configuration.
2015-02-27 01:05:37 +00:00
Petr Ledvina
a96a12bd47
compile some GPS code conditionally
2015-02-23 09:18:51 +01:00
Petr Ledvina
a67d2f8a9e
Whitespace fixes
2015-02-23 09:18:51 +01:00
Petr Ledvina
1ecbdf3dae
Minor code cleanup
2015-02-23 09:17:06 +01:00
Pierre-A
83aa49a812
battery alarm sound for Hott telemetry binary mode
2015-02-22 09:47:22 +01:00
Dominic Clifton
00f04e0ea2
Fix frsky telemetry which was needlessly checking for incoming data.
...
Maybe it needs to check that the serial port has SENT the data?
2015-02-19 00:34:24 +00:00
Dominic Clifton
7dcc7b2fb5
Multiple telemtry providers can now be active at the same time on any
...
serial port.
MSP telemetry can now be at any baud rate.
A pattern is emerging in each telemetry provider, code is duplicated to
get things working, refactoring can come later.
2015-02-18 23:10:36 +00:00
Dominic Clifton
5163bef0b2
Refactor serial port configuration, stage 1.
...
Tested and working:
* multiple MSP ports at different baud rates.
* cli on any MSP port.
* GPS
* gps passthough on currently active cli port.
Example config used for testing:
feature SOFTSERIAL
feature GPS
feature RX_PPM
serial_port_1_functions = 1
serial_port_1_baudrate = 115200
serial_port_2_functions = 128
serial_port_2_baudrate = 115200
serial_port_3_functions = 1
serial_port_3_baudrate = 19200
serial_port_4_functions = 0
serial_port_4_baudrate = 0
Known broken:
* Telemetry and shared serial ports
* Telemetry when unarmed.
Probably broken:
* Blackbox on shared port.
Untested.
* Serial RX.
* Blackbox.
2015-02-12 01:28:53 +00:00
Dominic Clifton
55cac2bdeb
Finally rename flight.c/.h to pid.c/.h. Cleanup some dependencies.
...
Relocate more code.
2015-02-01 00:39:38 +01:00
Dominic Clifton
8cc9e8ca37
More relocation of variables.
2015-02-01 00:03:46 +01:00
Dominic Clifton
53406a7ac7
Relocate some structures and code to the right places.
...
This cleans up the include file order somewhat and fixes a couple of
dependencies.
The goal of this is to rename flight.c/flight.h to pid.c/pid.h.
2015-01-31 23:47:51 +01:00
Dominic Clifton
8b0a982931
Telemetry naming cleanup.
2015-01-31 22:12:11 +01:00
Pierre-A
7f5c8326a5
HoTT check serial data improvement
2015-01-26 10:10:36 +01:00
Pierre Hugo
be03ed95fa
Renamed min, max and abs macros to MIN MAX and ABS.
2015-01-23 22:40:00 -08:00
Dominic Clifton
183c5f8e16
Add MPU9150 mag support and mag autodetection. Add AK8975 mag driver.
...
Note: not working on the sparky, MPU9150 needs passthough enabling but
when enabled the mag and gyro won't ack on the default addresses. Needs
further investigation.
2014-12-21 23:40:48 +00:00
Petr Ledvina
57c308538f
Whitespace cleanup
...
Misplaced whitespace fixed, no functional changes
2014-11-24 21:39:25 +01:00
Dominic Clifton
a71ef8fb80
Merge pull request #182 from ledvinap/fix-smartport
...
Fixed SmartPort units for heading; small improvements
2014-11-24 14:52:52 +00:00
Petr Ledvina
648e81d996
HOTT - fixed wrong operation order
...
Multiply first to prevent rounding error.
2014-11-24 15:39:49 +01:00
Petr Ledvina
21792048ae
Fixed SmartPort units for heading; small improvements
...
heading units checked with Opentx on Taranis ...
GPS speed is probably in knots, needs verification
2014-11-24 15:15:54 +01:00
Petr Ledvina
4157cf5315
Fix double constatns
...
some constants were double, M_PI was sometimes inherided as double
added -Wdouble-promotion to makefile warnings
2014-11-20 08:31:35 +01:00