1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-14 20:10:15 +03:00
Commit graph

11942 commits

Author SHA1 Message Date
Dominic Clifton
171ab22fb7 Merge remote-tracking branch 'multiwii/master' into hott-telemetry
Conflicts:
	src/drv_softserial.c
2014-04-07 20:22:07 +01:00
Dominic Clifton
4530f99e3b Ignore incoming software serial data that doesn't have a start and stop
bit.  Track software serial transmission and receive errors.
  
Nothing exposes the error counter values yet.
2014-04-07 20:16:28 +01:00
Dominic Clifton
eed511f90a Avoid softserial loopback on port 2 on Olimexino boards. 2014-04-07 20:14:16 +01:00
Dominic Clifton
aef3c6ad97 Update timer handling to support multiple events at the same time.
This can occur when servicing two software serial ports via a multiple
timer channels on the same channel.
2014-04-07 20:13:09 +01:00
dongie
13607964b9 Merge pull request #58 from hydra/softserial-fix-stop-bits
Fixing software serial stop bits.
2014-04-08 02:54:04 +09:00
Dominic Clifton
e2deeeebd3 Fixing software serial stop bits. Was broken since timer frequency
calculation changes in c7de7d2ebc.
2014-04-07 18:12:42 +01:00
Dominic Clifton
ac0f3e9186 Move port telemetry port configuration logic into common telemetry code.
Update software serial to support RX, TX or RX&TX modes.  Update serial
API to allow on-the-fly changing of serial port mode.  Update HoTT to
change serial port mode when transmitting.
2014-04-07 16:39:09 +01:00
Dominic Clifton
1051cbcf52 Removed needless memory copy operation. Removed checksum bytes from
HoTT packet structures, checksum is always sent by the response sending
code.  Reduce ram usage by 173+ bytes.  Corrected accreditations.
Updating documentation to match code.  Replaced comments that commented
out code with #ifdef blocks because commented out code is not found by
refactoring tools.
2014-04-07 14:12:45 +01:00
Dominic Clifton
55f14d2158 Adding author information and linking to original source for some of the
HoTT code - https://github.com/cGiesen/MultiHoTT-Module
2014-04-07 01:25:52 +01:00
Dominic Clifton
3007d3cbdc Improving code readability by aligning comments with code and removing
comments that duplicated code.  Comments are harder to refactor than
code and become stale.  Updating default and limit values for some
settings to use enum values.
2014-04-07 01:05:33 +01:00
Dominic Clifton
f7c937a323 Improve HoTT code readability. Add protocol overview comments. 2014-04-07 00:16:26 +01:00
Dominic Clifton
3ca868a59f Enable HoTT as a telemetry provider.
Import cGiensen's HoTT telemetry implementation - untested.
2014-04-06 23:51:48 +01:00
Dominic Clifton
08ee21cd58 Removed unused variables.
Compiler warning were generated when compiling using GCC with
-Wunused-variable
2014-04-06 23:16:30 +01:00
Dominic Clifton
1cbe166c49 Move common telemetry code to telemetry_common.c/.h 2014-04-06 23:10:29 +01:00
Dominic Clifton
d73094396d Allow user to use telemetry on softserial port 2. Should have been in
previous commit.
2014-04-06 22:33:18 +01:00
Dominic Clifton
6f0a419bf6 Cleanup telemetry code. Remove duplicate logic. Improve readability.
Add support for another provider.  Change default softserial baud rate
to match the speed used by FrSky telemetry.
2014-04-06 22:25:22 +01:00
Dominic Clifton
2fdadaa78f Rename telemetry.c to telemetry_frsky.c in preparation for adding
another telemetry provider
2014-04-06 21:36:56 +01:00
dongie
c2c1613dac Merge pull request #56 from hydra/software-serial-fix-inversion
Fixing software serial inversion.
2014-04-07 02:13:10 +09:00
Dominic Clifton
dbceb44fce Fixing software serial inversion. RX inversion was not implemented in
the new software serial receive implementation and TX was ignored
because the 'isInverted' flag was never set.
2014-04-06 17:23:29 +01:00
Dominic Clifton
9014a0a20f Merge remote-tracking branch 'multiwii/master'
Conflicts:
	src/main.c
	src/mw.h
2014-04-06 12:01:14 +01:00
dongie
f336fc8d20 allow configurable bootloader reboot character to workaround retarded BT adapters that spam 'R' 2014-04-06 13:42:10 +09:00
dongie
c0882fd863 building binary for softserial and GPS changes;
enum warning fix in sbus.c
2014-04-06 06:44:35 +09:00
dongie
be93548598 Merge pull request #52 from disq/gps_nmea_no_autodetect
GPS: clean up NMEA autodetect-baud
2014-04-06 06:40:58 +09:00
Kemal Hadimli
2ca082f09c GPS: clean up NMEA autodetect baud. -1 no longer used, it will cycle through available baud rates if no data is received anyway 2014-04-06 00:38:37 +03:00
dongie
0f84e41f4f Merge pull request #50 from hydra/softserial-no-polling-and-two-ports
Add support for 2 softserial ports and avoid polling of software serial RX pins
2014-04-05 14:36:36 +09:00
Dominic Clifton
c7de7d2ebc Add support for 2 softserial ports on PWM4+5/TIM3_CH1+2/PA6+PA7 and
PWM6+7/TIM3_CH3+4/PB0+PB1

Update software serial to monitor serial pins for signal changes instead
of periodically sampling pin signals.

When reading the data the timer used is syncronized to the falling edge
of the start bit which allows for better syncronisation at higher
speeds.  The code has been tested OK from 1200 baud to 19200.  38400
baud was tested and partially usable but has been disabled because there
are too many transmit and receive errors, especially when transmitting
and receiving at the same time.

Due to the way a single timer is used for transmitting and receiving, if
data comes in while transmitting the system may incorrectly transmit a
short or long bit.  However at 19200 and below this didn't cause a
problem in the limited testing I performed.
2014-04-03 22:42:15 +01:00
dongie
bd809bca1b Merge pull request #49 from hydra/softserial-baud-rates
Softserial support for baud rates from 600 to 19200
2014-04-03 21:03:17 +09:00
Dominic Clifton
c36d884899 Change softserial timer calculation code to support baud rates in the
range 600 to 19200 (tested)
2014-04-03 13:00:12 +01:00
Dominic Clifton
7ebd402007 Merge remote-tracking branch 'multiwii/master' 2014-03-27 21:45:08 +00:00
dongie
06554338d1 initializing static var in gps 2014-03-02 23:05:44 +09:00
dongie
f83133fa74 Fixing missing reply in MSP_SET_MOTORS. Found by cTn 2014-02-20 19:56:40 +09:00
dongie
d40e8c0ef4 shows how many people use gimbal outputs.
regular gimbal rates has been broken since forever, same rate was applied to pitch and roll, instead of separate. thanx nicodh
2014-02-20 16:21:44 +09:00
dongie
96dcfe9174 Added support for fast sbus2 protocol (used by newer receivers). Untested, thanks Cesco 2014-02-19 16:36:10 +09:00
dongie
af13325f9e building hex file for servo center fix 2014-02-18 15:42:13 +09:00
dongie
75ae09454b Merge pull request #44 from DTFUHF/master
Have servos output midrc at startup
2014-02-18 15:40:43 +09:00
dongie
30afff2578 got rid of feature_gyro_smoothing. nobody used that, and its retarded to do anyway. 2014-02-18 15:27:53 +09:00
dongie
202fc17608 added max_angle_inclination to CLI to configure (default) 50 degree max inclination. configurable between 10 and 90 (100..900 in cli) 2014-02-18 15:23:02 +09:00
dongie
9d421b4a67 removed rc averaging for serialrx sources - suggested by cesco 2014-02-18 12:12:08 +09:00
DTF UHF
ac94147589 Have servos output midrc at startup instead of 1ms pulse (full deflection) 2014-02-14 15:15:38 -05:00
dongie
4e44cf62a2 Merge pull request #43 from kh4/master
Fix line endings to CRLF
2014-02-07 21:12:12 +09:00
kh4
ceb1f78526 Fix line endings to CRLF 2014-02-07 13:40:27 +02:00
dongie
0c46bdbfc8 added cli settings for pidvel
added (unsupported) GPS nav MSP numbers.
2014-02-04 08:21:40 +09:00
dongie
efedff771e adding updated uvision project 2014-01-31 21:51:10 +09:00
dongie
e8b3d00003 implement (not flight tested) brushed motors support.
set motor_pwm_rate to some value > 500 (1000, 8000, 16000 etc works on my scope).
then the motor output can be used to directly drive brushed motor fets.
PWM is rescaled to 0-base in brushed mode, so all same values of min/maxthrottle apply.
2014-01-31 11:56:55 +09:00
dongie
a695ddd66a added sumd serial receiver support by cesco/Plüschi 2014-01-31 10:02:50 +09:00
dongie
92c0947d7f bump config version after PID default changes and add built hex file 2014-01-28 10:03:30 +09:00
dongie
e787a493dd Merge pull request #42 from luggi/betteralthold
new althold PID
2014-01-27 16:34:13 -08:00
Lukas S
073f5116bb new althold PID
althold should work better now, the PID settings are preliminary. There
is definetly room for improvement.
For aquiring your own PID settings set ALT_P = 0 and tune the VEL pid
until the copter only drifts a little from its position when you
activate althold. Then set ALT_P to a value where it holds the position
stable
2014-01-28 01:26:58 +01:00
dongie
cae8682c62 Merge pull request #41 from schugabe/master
modified MSP implementation to reflect MW2.3 changes
2014-01-27 05:38:39 -08:00
Johannes Kasberger
142bb20ae6 modified MSP implementation to reflect MW2.3 changes 2014-01-27 14:27:43 +01:00