Lucas De Marchi
1aaba01622
AP_HAL_QURT: Scheduler: replace use of in_timerprocess()
...
This function actually checks if we are not in the main thread rather
than if we are in the timer thread.
Add a new function that does what it's supposed to do.
2017-08-03 20:25:07 -07:00
Lucas De Marchi
9e66938f68
AP_HAL_PX4: Scheduler: replace use of in_timerprocess()
...
This function actually checks if we are not in the main thread rather
than if we are in the timer thread.
Add a new function that does what it's supposed to do.
2017-08-03 20:25:01 -07:00
Lucas De Marchi
93a558ce5c
AP_HAL_Linux: do not call delay callbacks on other threads
...
If a thread other than the main one calls Scheduler::delay() we could
end up triggering the call of delay callbacks. Those should only ever
happen on the main thread.
2017-08-03 20:24:57 -07:00
Peter Barker
e0879c6fce
Sub: stop sending MSG_SERVO_OUT messages
...
This didn't ever result in a message being sent on Sub
2017-08-03 14:34:33 +01:00
Peter Barker
db080ed60e
Copter: stop sending MSG_SERVO_OUT messages
...
This didn't ever result in a message being sent on Copter
2017-08-03 14:34:33 +01:00
Peter Barker
137d513fdc
Rover: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
33858187ef
Tracker: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
1fcab08bd0
Sub: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
4cb94b80ee
Plane: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
7c37bb324b
Copter: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
ad2c3d27ec
GCS_MAVLink: move try_send_message queued_param_send up
2017-08-03 14:34:33 +01:00
Peter Barker
dbac7447d6
Rover: move try_send_message send_hwstatus up
2017-08-03 14:34:33 +01:00
Peter Barker
e08b87763e
Tracker: move try_send_message send_hwstatus up
2017-08-03 14:34:31 +01:00
Peter Barker
7c5ed54ffc
Sub: move try_send_message send_hwstatus up
2017-08-03 14:33:37 +01:00
Peter Barker
089f6f4650
Plane: move try_send_message send_hwstatus up
2017-08-03 14:33:37 +01:00
Peter Barker
431e3443bd
Copter: move try_send_message send_hwstatus up
2017-08-03 14:33:37 +01:00
Peter Barker
679bb7f7a5
GCS_MAVLink: move try_send_message send_hwstatus up
2017-08-03 14:33:37 +01:00
Peter Barker
4da89a948a
Rover: move try_send_message mission handling up
2017-08-03 14:33:37 +01:00
Peter Barker
de0c6d7ca5
Tracker: move try_send_message mission handling up
2017-08-03 14:33:31 +01:00
Peter Barker
7a72c3b1fb
Sub: move try_send_message mission handling up
2017-08-03 14:24:47 +01:00
Peter Barker
fee9e83881
Plane: move try_send_message mission handling up
2017-08-03 14:24:47 +01:00
Peter Barker
3e5665735f
Copter: move try_send_message mission handling up
2017-08-03 14:24:47 +01:00
Peter Barker
3b472ccc17
GCS_MAVLink: move try_send_message mission handling up
2017-08-03 14:24:47 +01:00
Peter Barker
dbdfce570a
Rover: move try_send_message compass message handling up
2017-08-03 14:24:47 +01:00
Peter Barker
5b4d968887
Tracker: move try_send_message compass message handling up
2017-08-03 14:24:47 +01:00
Peter Barker
dce947b54f
Sub: move try_send_message compass message handling up
2017-08-03 14:24:46 +01:00
Peter Barker
a740c10dfe
Plane: move try_send_message compass message handling up
2017-08-03 14:24:46 +01:00
Peter Barker
2a62b57e11
Copter: move try_send_message compass message handling up
2017-08-03 14:24:46 +01:00
Peter Barker
b8cb758fac
GCS_MAVLink: move try_send_message compass message handling up
2017-08-03 14:24:46 +01:00
Peter Barker
4b63443633
Copter: correct misleading comment
2017-08-03 14:24:46 +01:00
Lucas De Marchi
e98fe2d7d5
AP_HAL: RingBuffer: add missing include
2017-08-02 21:10:55 -07:00
Lucas De Marchi
61aed0f0d7
RingBuffer: example: integrate with build system
...
It's only compatible with Linux so for now disable the other boards.
2017-08-02 16:08:55 -07:00
Murilo Belluzzo
641671a366
AP_HAL: Add simple stress test for RingBuffer class
...
It runs a Producer/Consumer thread pair endless reading and writing a
ByteBuffer. Producer writes a number sequence that is twice the
ByteBuffer size so a given position have a different data on each write
pass. Consumer makes sure that this pattern is not broken and aborts the
program if it is.
It is possible to spawn more pairs by informing a number as argument of
the program.
2017-08-02 15:30:35 -07:00
Lucas De Marchi
dbd074b250
AP_HAL: remove register_timer_process with extra arg
2017-08-02 08:00:53 -07:00
Lucas De Marchi
c170c2a847
AP_HAL_Linux: remove register_timer_process with extra arg
...
This is not used anymore.
2017-08-02 08:00:53 -07:00
Lucas De Marchi
6bab28397a
AP_Compass: remove user of timesliced logic
2017-08-02 08:00:53 -07:00
Lucas De Marchi
0a158f6d3f
AP_HAL_Linux: remove support for timesliced timer
...
This has long been replaced by the bus per thread scheme.
2017-08-02 08:00:53 -07:00
Lucas De Marchi
13dbc306e1
PX4Firmware: update submodule
...
Allow FPGA to reset stm32 allowing to unstuck a bad firmware without
needing to flash a special FPGA firmware and reboot the board.
2017-08-02 02:55:20 -07:00
ljwang
5a7ec7d429
Delete write registers at start,using another way to repair
2017-08-02 16:15:14 +10:00
ljwang
648871a388
Fixed the QMC5883 identification,add check ID
2017-08-02 16:15:14 +10:00
Peter Barker
4865aef9e4
Sub: base SYS_STATUS load average on variable loop rate
2017-08-01 19:39:27 +01:00
Peter Barker
50cbbc324b
Plane: base SYS_STATUS load average on variable loop rate
2017-08-01 19:39:27 +01:00
Peter Barker
31b33b2232
Copter: base SYS_STATUS load average on variable loop rate
2017-08-01 19:39:27 +01:00
Peter Barker
d44c7f0886
Rover: base SYS_STATUS load average on variable loop rate
2017-08-01 19:39:27 +01:00
Peter Barker
b445313bf1
AP_Scheduler: remove loop-period argument from load_average
...
This now comes from a parameter rather than being hard-set
in the vehicle code
Also adds a method returning the max loop period based on the
loop rate
2017-08-01 19:39:27 +01:00
Michael du Breuil
efe70c8d3a
AP_NavEKF3: Fix possible compass nullptr dereference
2017-08-01 15:25:05 +01:00
Michael du Breuil
dffa3d3b40
AP_NavEKF2: Fix possible compass nullptr dereference
2017-08-01 15:25:05 +01:00
Andrew Tridgell
78f6a5a177
Tools: improve devid decode
2017-08-01 20:17:11 +10:00
Andrew Tridgell
9b16836da5
Plane: cope better with more RC trim/min/max values
...
when min > trim we need to do RC scaling via rc_config. This loses the
ability to go beyond RC limits, but that can be coped with using
MANUAL_RCMASK
2017-08-01 08:25:32 +10:00
Andrew Tridgell
99df31f6ec
Plane: fixes from review
...
thanks Francisco
2017-08-01 08:25:32 +10:00