Bryant
5730af5c63
Fix setting the baud rate.
...
There's also a partial fix for the databits and stopbits. I'm unsure how to deal with the logic
around the 'is_cdc' variable, as I can't really follow what it's for.
10 years ago
Don Gagne
d3ad49f3d5
Moving more things off of MainWindow
...
Moving methods from MainWindow to QGCApplication so that more things
can run without a window. Helpful for testing.
10 years ago
Don Gagne
fc493d75c1
Move UAS and MAVLinkProtocol back to main thread
...
Plus a large number of other changes to allow for orderly shutdown of
objects without crashes or asserts. This is need for unit tests to
create/delete global state around every test.
11 years ago
Don Gagne
f65c0a5797
Link connect/disconnect only through LinkManager
...
Centralize all connecting and disconnecting of links through
LinkManager::[Connect|Disconnect]Link api. Connect/Disconnect no longer
allowed through LinkInterface. This allows creation of new
LinkManager::setConnections[Suspended|Allowed] methods to disallow
connections as needed.
11 years ago
Don Gagne
dc0c3f3db3
LinkInterface::bytesAvailable api removal
...
This api doesn’t make any sense given the fact that LinkInterface
signals bytesReceived with the bytes in the signal. Also the reason why
it is never called!
11 years ago
Lorenz Meier
3e0cd20746
Use a local variable for the port list, use correct null ptr macro
11 years ago
Bryant Mairs
14dbbd9b26
"qserialport.h" is now <QSerialPort>
11 years ago
Bryant Mairs
62d221006a
Renamed configuration.h to QGCConfig.h to avoid issues with opmapcontrol's configuration.h
11 years ago
Lorenz Meier
71e284cd8b
Do not try to talk to bootloaders in the main flight code management routines
11 years ago
Lorenz Meier
4941ee54f0
Avoid evil port config for CDC devices altogether, non-CDC devices (unknown devices) should be unaffected
11 years ago
Lorenz Meier
13bf5898ad
Avoid ANY configuration action in serial link if not strictly required by user
11 years ago
Lorenz Meier
cbaa538cf8
Do not configure the port if talking to PX4 units (since USB does not know anything about baud rate)
11 years ago
Don Gagne
0320b5306b
Silence some queued signal warnings
11 years ago
Don Gagne
7b5ffc31cd
Cleanup of TCPLink from unit test findings
11 years ago
Don Gagne
761fef9548
Cleanup of TCPLink from unit test findings
11 years ago
Bryant Mairs
0558263616
Converted LinkInterface from a pure-virtual interface into an abstract base class. This centralized the data rate calculation code for all subclasses. Also added the necessary code to provide upstream/downstream data rate calculations for all LinkInterface-derived classes.
12 years ago
Bryant Mairs
c4db113de3
Renamed getNominalDataRate to getConnectionSpeed. Also added upstream/downstream data rate functions to all Link classes.
12 years ago
Don Gagne
bfe8684e2b
Removed LinkInterface methods which were never being called. Updated various LinkInterface implementation classes to remove the methods. Some methods such as the ones which measure data rates or bits sent/received were implemented in only some of the implementation classes, and in some cases implemented incorrectly. If they were called, the values returned would be incorrect. Although there was some partial implementation for these I removed them as well since in all case they were never being called by any code. In checking Blame, these came across in 2010 and have remained unimplemented since them, so I figure better to clean up than leave crufty, unused, half finished stuff in.
12 years ago
tstellanova
32b15c26d4
fix emits of comms updates, fix serial error queueing
...
fixed runtime error with a typedef:
QObject::connect: Cannot queue arguments of type
'QSerialPort::SerialPortError'
(Make sure 'QSerialPort::SerialPortError' is registered using
qRegisterMetaType().)
12 years ago
Bill Bonney
f60e7231d5
FIX: Added the use of waitForBytesWritten to enable sending data
12 years ago
Bill Bonney
9b5c656fc1
Fix to improve QSerialPort integration & stability.
12 years ago
Bill Bonney
bc2ce1ab47
Fix to make Baud and PortName update when changed
12 years ago
Bill Bonney
359f8bd1d8
APMToolbar as a docking widget [complete] + missing files
12 years ago
Bill Bonney
2d63bb400a
removed unused code and fixed disconnect problem
12 years ago
Bill Bonney
aedaa844a8
Stability improvements and error fixes
12 years ago
Bill Bonney
c2abde1029
adds missing files
12 years ago
Michael Carpenter
f418c2e555
Addition of requestReset to LinkInterface, to allow MavLinkProtocol to detect when connected, but at the wrong baud rate, request a reset.
12 years ago
Bryant
d0af5b03bd
Changed many functions in the abstract *Link classes to be const. This facilitates setting other functions as const. The metadata for specific links are reset when the links are added.
12 years ago
Bryant
7095cf2824
Changed many functions in the abstract *Link classes to be const. This facilitates setting other functions as const. The metadata for specific links are reset when the links are added.
12 years ago
Michael Carpenter
7f4cb98799
On no serial data, now attempts both a "reboot" reset, and then a DTR reset of the autopilot
12 years ago
LM
3e3a129c38
Minor cleanup, fixed a bug where the serial port would not connect on first application launch on Linux
14 years ago
oberion
b7b269121c
Serial commmunication bug fix
...
port has to be closed and deleted in the same thread as it was created. changed the disconnect function
14 years ago
lm
4b2663b543
Added baudrate 921600, made uart in basic mode operational
14 years ago
James Goppert
18d74deb3a
K/R formatting, debugging serialport.
14 years ago
James Goppert
48f4d3ba55
Finished abstracting serial port.
14 years ago
pixhawk
94348cb74a
Added not yet working version of logging / log replay, fixed ALL bugs in main window, enabled full persistence in main window and serial link.
15 years ago
pixhawk
38941da991
Added new options for windows serial port, fixed a number of bugs, added customizing options to instrument widgets
15 years ago
pixhawk
95aaa6a169
Major MAVLink cleanup
15 years ago
pixhawk
058438f049
now compiles with qt 4.7 and 64-bit linux, fixed a bug in SerialLink
15 years ago
pixhawk
1d86c8ac85
Cleaned up communication structure significantly, should now be easier to add new links. Signal bytesReceived(link, QByteArray) is now only way to pass on newly received data
15 years ago
pixhawk
4fa6562e5c
Initial import
15 years ago