1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00
Commit graph

52 commits

Author SHA1 Message Date
Martin Budden
a257210b56 Split features into a separate module 2016-09-04 18:48:58 +01:00
Martin Budden
541f4d4018 Directory rearrangement to reflect cleanflight changes 2016-08-07 13:44:00 +01:00
Martin Budden
141b369667 Removed trailing whitespace 2016-07-16 07:54:58 +01:00
Martin Budden
c076bc3e2d Minor build optimisations 2016-07-11 20:11:09 +01:00
Martin Budden
3a0f8388ee Changed tabs to spaces in io/ 2016-07-09 13:29:01 +01:00
Ferdia McKeogh
df2ba31c1d Update gps.c 2016-02-16 17:28:13 +00:00
cmenard
d174314692 Add Lux target 2016-02-02 23:03:08 +01:00
Larry (TBS)
ab6f1af171 - add GPS auto change buadrate 4800 to 115200 support 2015-12-23 00:05:32 +01:00
Dominic Clifton
a319394f6b Merge branch 'blackbox-serial-budget' of https://github.com/sherlockflight/cleanflight-dev into sherlockflight-blackbox-serial-budget
Conflicts:
	src/main/blackbox/blackbox.c
2015-10-12 20:14:20 +01:00
Petr Ledvina
8f3d9fae9a unify typedef struct name_s {} name_t; naming convention 2015-10-12 19:58:12 +01:00
Nicholas Sherlock
6e504ca52a Ability to see how many Tx bytes are free in serial port buffer 2015-10-01 16:48:56 +13:00
Larry (TBS)
3b1f423c49 COLIBRI RACE support 2015-08-20 19:18:10 +01:00
Michael Hope
14869d0a99 various: use enums to make the code easier to read.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-23 05:21:48 +02:00
Michael Hope
b90ccf4c1a various: use ARRAYLEN() in more places.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-05-23 05:21:39 +02:00
Dominic Clifton
f28158a5a7 Cleanup debug code. 2015-04-14 13:59:11 +01:00
Dominic Clifton
4746b336b9 Tweak to GPS page to show when Space Vehicle updates are received via a
ticker next to the bargraphs which updates each time SV info is
received.

Some code-size improvements optimizations could be done.
2015-03-10 23:01:06 +00:00
Dominic Clifton
d8cd9f239c Merge pull request #437 from tracernz/nmea-satdata
Add NMEA Signal Quality
2015-03-10 00:18:47 +01:00
Dominic Clifton
1a8500c768 Transition to new per-port & per-function baud rate configuration. 2015-02-27 01:05:37 +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
tracernz
cda2f3169e Add NMEA $GPGSV Decoding for Sat Data 2015-01-31 18:08:36 +13:00
tracernz
c226f6a412 Tidy up NMEA Code A Little
Still a LOT of tidying up needed in future, of the whole GPS module
really.
2015-01-31 18:07:05 +13:00
Dominic Clifton
dd54a59991 Fix compilation on EUSTM32F103RC target. 2014-12-17 23:14:56 +00:00
Dominic Clifton
101f2aa8c2 DISPLAY - Only show GPS page when using GPS passthrough. 2014-12-16 00:17:56 +00:00
Dominic Clifton
d8b5f6c60c GPS - Add satellite strength bargraphs to OLED display. 2014-12-13 21:58:54 +00:00
Dominic Clifton
f78b80fe01 GPS - Update UBOX auto-configure to use Pedestrian navigation mode.
"Applications with low acceleration and speed, e.g. how a pedestrian
would move. Low acceleration assumed. MAX Altitude [m]: 9000, MAX
Velocity [m/s]: 30, MAX Vertical Velocity [m/s]: 20, Sanity check type:
Altitude and Velocity, Max Position Deviation: Small"
2014-12-13 18:16:03 +00:00
Dominic Clifton
119542a218 Avoid use of calls to the display when display not supported by the
target.
2014-12-13 12:08:13 +00:00
Dominic Clifton
ff9806e7a8 GPS - send UBlox SVINFO only once every 5 cycles (1hz) to reduce load on
the FC.
2014-12-13 02:15:53 +00:00
Dominic Clifton
1c8416db2c GPS - handle data loss occurs in the start of a UBLOX frame 2014-12-13 01:42:35 +00:00
Dominic Clifton
20f32d632c GPS - differenciate between timeouts and crc errors. Improve packet
logging.  Cleanup UBLOX packet parsing.
2014-12-12 18:26:38 +00:00
Dominic Clifton
39f9b799d3 GPS - quick hack to parse the received GPS data and update the OLED
display in GPS passthough mode.
2014-12-12 17:04:33 +00:00
Dominic Clifton
1d5c2fb13e GPS - fix ubox maximum packet size comparisons. Increase UBlox buffer
size to work with Glonass MSG-SVINFO packets.  Skip data from packets
that are too large to process without attempting to process a large
payout as packet data.  Ignore GPS presence check when enabling
passthrough mode so that it is possible to configure a GPS unit via the
FC without the GPS unit actually having communicated to the FC first.
2014-12-12 16:32:26 +00:00
Dominic Clifton
6ce288063e GPS - Add packet logging to the OLED display. Allow autobauding to be
enabled/disabled via cli (disabled by default now).  Fix missing rate
configuration for UBLOX SVINFO which would have resulted in missing
satallite counts.
2014-12-12 14:43:59 +00:00
Dominic Clifton
2778ad0c5d Fix gps error counter so that it is meaningful, it was being reset each
time the gps unit was reinitialised leading users to think there were no
GPS errors.
2014-12-11 16:31:14 +00:00
Petr Ledvina
31c8c21a79 Enable TX when entering gpspassthrough 2014-11-19 17:46:31 +01:00
Dominic Clifton
1b47d3cbae Clean up pull request #108 from @Airmamaf. 2014-10-18 15:52:04 +01:00
Airmamaf
9b84516344 FrSky telemetry update 2014-10-08 16:28:26 +02:00
airmamaf
f3d40ece27 Update gps.c
Compute GPS quality signal
2014-09-25 08:56:16 +02:00
Dominic Clifton
b4620235dd Adding note about potential flash usage optimization in GPS code. 2014-09-08 10:41:17 +01:00
Dominic Clifton
5b3d86e966 Update unit tests. 2014-09-05 22:46:33 +01:00
Dominic Clifton
3f0754d295 Replace global flags with stateFlags, flightModeFlags and armingFlags.
Each flag was previously a whole byte, now all of the flags only take up
4 bytes as they are represented by bit masks.

This is cleaner because the different kind of flags are now separated.

Additionally this changes the behaviour of arming slightly.  When using
a switch to arm the aircraft will not arm unless the switch has been in
the off state once.  This prevents arming if you power the aircraft with
a low throttle and the switch in the on position.
2014-08-24 12:11:30 +01:00
Dominic Clifton
9906294cd8 Split navigation functionality from io/gps.c into flight/navigation.c.
gps.c now only has code that deals with gps hardware, state and
messaging.
navigation.c  now only has code dealing with flight
navigation/waypoints/home/hold/etc
2014-08-07 14:23:05 +01:00
Dominic Clifton
f08760634e Cleanup GPS compilation warnings from
ca746d2ff47c8eb589386045b91bbccdd76246d1
2014-08-02 00:43:06 +01:00
norem
74c3e28a12 Update gps.c
correctly verifies checksum before modifying read NMEA gps data
2014-08-01 22:54:01 +01:00
Dominic Clifton
9a9ff9b1ad Cleanup various compiler warnings that were appearing since the
additional compiler flags were added.
2014-08-01 20:02:10 +01:00
Dominic Clifton
3b629d58a0 GPS can now be conditionally compiled in. 2014-07-30 23:35:33 +01:00
Dominic Clifton
64a43c77ca Use the enum type for navigationMode_e in the GPS code. 2014-06-06 19:54:52 +01:00
Dominic Clifton
e867af8c4b Correct project name in GPL notices. 2014-06-05 00:47:47 +01:00
Dominic Clifton
0bbcd6570f Updated source files to include the GPL v3 notices. Include a copy of
the GPL v3.
2014-06-04 16:48:23 +01:00
Dominic Clifton
fabd376f41 Allow GPS SBAS mode to be configurable.
It was noticed that GPS startup time increased when the change was made
from using EGNOS by default to using AUTO by default.

The default is still AUTO but faster GPS startup times may be achieved
by telling the GPS receiver what region you are in.

This also removes more unfinished MTK gps provider support.
2014-06-03 13:38:41 +01:00