Commit Graph

34 Commits

Author SHA1 Message Date
Andrew Bettison
7d9a5faa4e Move if(config.debug.xxx) tests into DEBUGF()
Original DEBUG() and DEBUGF() macros renamed to _DEBUG() and _DEBUGF()
New DEBUG() and DEBUGF() macros, first argument is flagname
New DEBUGF2(foo, bar, ...) macro does if(config.debug.foo||config.debug.bar) test
Replace almost all config.debug.xxx references to IF_DEBUG(xxx)
2015-07-13 16:00:05 +09:30
Jeremy Lakeman
f7dbe06836 Rearrange interface config to support unicast settings 2015-03-23 13:35:22 +10:30
Jeremy Lakeman
a37db8e958 Move most console commands to other files 2014-08-25 16:03:30 +09:30
Jeremy Lakeman
5f2c6e364a Refactor interface addresses to use new socket_address struct 2014-01-09 15:01:38 +10:30
Andrew Bettison
9b64bb87e0 Uniform copyright notices
Added some missing copyright/license block comments
2013-12-04 17:15:36 +10:30
Andrew Bettison
7564d529a1 Add missing copyright/license comment blocks
Update a few existing copyright notices to reflect recent work
2013-11-21 16:05:18 +10:30
Jeremy Lakeman
3f123e1875 Send the next packet via stream interface ASAP 2013-09-12 16:14:01 +09:30
gardners
7248e01567 Implement flow of mavlink packets over serial connections
Replaces upper-7 bit slip encoding
Solves reliability of reading radio status messages
2013-09-10 13:07:52 +09:30
Jeremy Lakeman
8fea1523b1 More consistent use of sleep_ms 2013-08-27 15:14:17 +09:30
gardners
d01e958b51 improve radio setup (its still an ugly hack) to try to avoid
failure to setup in mesh extenders running at 230400.
2013-07-31 10:27:10 +09:30
Jeremy Lakeman
3306cda3ab Fix typo in uart baud rate 2013-07-12 15:43:25 +09:30
Jeremy Lakeman
944f718ff7 Convert baud rates into appropriate constant values, report any failures 2013-06-24 16:15:44 +09:30
gardners
09540c568b reverse change that broke android compilation. 2013-05-21 12:48:14 +09:30
gardners
42c637b021 removed extraneous argument to tcgetattr() 2013-05-08 13:32:24 +09:30
gardners
d02bcdd882 report uart speed actually obtained. 2013-05-08 13:32:01 +09:30
gardners
3e7de24bdf added uartpbs and ctsrts config options to packet radio serial
interface configuration options.
2013-04-26 15:16:51 +09:30
Andrew Bettison
300ec986f1 Fix warnings from gcc 4.6.3 2013-03-18 16:48:15 +10:30
gardners
fea06932e5 added new slip.c with 7-bit-high packet encapsulation, packet length
and CRC32.
Also added in-line RSSI report reception for RFD900 radios.
2013-02-20 15:36:24 +10:30
Jeremy Lakeman
45efb3f899 Add more raw options to serial interface 2013-02-20 15:36:24 +10:30
Jeremy Lakeman
6d9bbe2e2c Refactor interface handling to separate encapsulation from stream type 2013-02-20 15:36:23 +10:30
Jeremy Lakeman
c7caec488a Don't aggregate packets together on radio links 2013-02-20 15:36:23 +10:30
Jeremy Lakeman
84ad4debfa Throttle serial radio devices when tx buffer is in use 2013-02-20 15:36:22 +10:30
gardners
0de64d0363 decoder state bug fix. 2013-02-20 15:36:22 +10:30
gardners
92f2573998 hex constants are easier to read than octal.
debug encapsulation.
2013-02-20 15:36:22 +10:30
gardners
69ae7e1706 prune some debugging.
avoid some segfaults due to lack of IP addresses in packet radio
native MDP payloads.
problems remain with SLIP encapsulation/extraction, but some packets
are already getting through.
2013-02-20 15:36:22 +10:30
gardners
834239863c fixed some packet radio encapsulation bugs. 2013-02-20 15:36:21 +10:30
gardners
e82d2e73da fixed handling of POLL flags on packet radio interface
(was not calling watch() when changing them).
2013-02-20 15:36:21 +10:30
gardners
e20cfdb59d closer to working.
POLLOUT seems to get stuck once triggered.
2013-02-20 15:36:21 +10:30
gardners
7f0a22408a more work on SLIP encoding/decoding for packet radio interfaces. 2013-02-20 15:36:21 +10:30
gardners
b70aa9b8c6 fixed problems with interface ticking on packetradio interfaces.
still crashes and burns.
2013-02-20 15:36:21 +10:30
gardners
a4bfdc6c75 fixed serial port reading and interface setup bugs.
now crashes when trying to tick packet radio interface.
2013-02-20 15:36:20 +10:30
gardners
7287a2d599 add hook for transmitting packet via packet radio interface.
make serial port non-blocking (which for some reason has also
killed our ability to read from it :/).
2013-02-20 15:36:20 +10:30
gardners
0268ccd21a setup serial port mode when opening packet radio interface.
(now reads bytes over serial line)
2013-02-20 15:36:20 +10:30
gardners
190a5e693f refactored packet radio code mostly into separate file.
began writing stateful packet decoder.
2013-02-20 15:36:20 +10:30