mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 10:31:37 +08:00
px4io: moving mixing to FMU side
Using mixers on the IO side had a remote benefit of being able to override all control surfaces with a radio remote on a fixed wing. This ended up not being used that much and since the original design 10 years ago (2011) we have been able to convince ourselves that the overall system stability is at a level where this marginal benefit, which is not present on multicopters, is not worth the hazzle. Co-authored-by: Beat Küng <beat-kueng@gmx.net> Co-authored-by: Daniel Agar <daniel@agar.ca>
This commit is contained in:
@@ -355,9 +355,8 @@ int
|
||||
PX4IO_Uploader::get_sync(unsigned timeout)
|
||||
{
|
||||
uint8_t c[2];
|
||||
int ret;
|
||||
|
||||
ret = recv_byte_with_timeout(c, timeout);
|
||||
int ret = recv_byte_with_timeout(c, timeout);
|
||||
|
||||
if (ret != OK) {
|
||||
return ret;
|
||||
@@ -395,13 +394,11 @@ PX4IO_Uploader::sync()
|
||||
int
|
||||
PX4IO_Uploader::get_info(int param, uint32_t &val)
|
||||
{
|
||||
int ret;
|
||||
|
||||
send(PROTO_GET_DEVICE);
|
||||
send(param);
|
||||
send(PROTO_EOC);
|
||||
|
||||
ret = recv_bytes((uint8_t *)&val, sizeof(val));
|
||||
int ret = recv_bytes((uint8_t *)&val, sizeof(val));
|
||||
|
||||
if (ret != OK) {
|
||||
return ret;
|
||||
@@ -419,7 +416,6 @@ PX4IO_Uploader::erase()
|
||||
return get_sync(10000); /* allow 10s timeout */
|
||||
}
|
||||
|
||||
|
||||
static int read_with_retry(int fd, void *buf, size_t n)
|
||||
{
|
||||
int ret;
|
||||
|
||||
Reference in New Issue
Block a user