Commit Graph

710 Commits

Author SHA1 Message Date
Andrew Tridgell 19ba2322ac DataFlash: added timestamp to CAM messages 2018-11-30 10:12:27 +11:00
Michael du Breuil 3ee675ad42 DataFlash: Log integer version of mission
This is higher precision the casting to float, and better matches the
internal format we actually use. Removed the indicection as it gained us
nothing. Closes #8875
2018-11-24 20:11:46 -08:00
Randy Mackay 3cc84173e3 DataFlash: log rangefinder status in RFND msg 2018-11-15 09:18:45 +09:00
Peter Barker 3eee4e917a DataFlash: OpticalFlow takes care of its own logging 2018-11-13 10:40:23 +11:00
Peter Barker bc212073a2 DataFlash: add override keyword 2018-11-08 11:30:12 +11:00
Peter Barker 3803684c4e DataFlash: add sanity checks around EraseAll 2018-11-06 10:15:03 +11:00
Peter Barker 156ac83123 DataFlash: allow replay to work again 2018-10-31 16:05:33 +11:00
Peter Barker 4c794ebba3 DataFlash: account for snprintf now null-terminating strings 2018-10-21 07:54:30 +11:00
Andrew Tridgell 1d6b58f9ca DataFlash: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Peter Barker c0e03522c6 DataFlash: change unit ID of PWM to Y to remove conflict with deglongitude
Closes #9554 (thanks @wbrueg)
2018-10-16 10:02:19 +11:00
Peter Barker b177554f61 DataFlash: add sanity check for duplicate units/multipliers 2018-10-16 10:02:19 +11:00
Michael du Breuil 9b82bcc901 DataFlash: Spin up more battery messages
This is crazy, because it just burned 5.5% of all possible message ID's
2018-10-09 00:44:46 +01:00
Randy Mackay 397e035cf7 DataFlash: replace unused AFF with actual in PID_Info 2018-08-27 16:44:33 +09:00
Peter Barker 6daa241235 DataFlash: add sanity check for WritePrioritisedBlock size 2018-08-21 10:57:43 +10:00
Peter Barker fa7ba7ddbc DataFlash: force messagewriters to completion
Setting a dataflash-file buffer size of less than or equal to 2kiB would
cause the startup-messagewriter to never push any messages other than
FMT out to the logs.

This is a combination of the return values of
critical_message_reserved_space and
non_messagewriter_message_reserved_space

This patch forces the startup messages out to the logs by ignoring the
space constraints every 100ms
2018-08-15 12:40:33 +10:00
Michael du Breuil 6469a985d7 DataFlash: Fix allocating extra values for RC logging 2018-08-09 11:53:05 +10:00
Peter Barker f4c93dc697 DataFlash: use rc() method to get rc singleton 2018-08-01 12:11:30 +09:00
Peter Barker ce62b2303a DataFlash: add ability to log-disarmed 2018-08-01 11:28:52 +09:00
Andrew Tridgell 8b4b38bcb2 DataFlash: removed "no io thread heartbeat" msg 2018-07-31 19:37:17 +10:00
murata 396517fe58 DataFlash: Delete unused arguments. 2018-07-30 12:14:49 +09:00
Peter Barker 4e0c6b873f DataFlash: use compass singleton for logging 2018-07-04 20:11:27 +01:00
Peter Barker fc378eeae1 DataFlash: move log-transfer state variables into enumerated variable 2018-07-02 10:46:52 +10:00
Peter Barker 493f958eb2 DataFlash: remove unused ReadBlock method 2018-07-02 09:00:51 +10:00
Alexander Malishev 932cc4bb69 DataFlash: allow HAL to specify dataflash buffer sizes 2018-06-25 17:43:20 +10:00
Alexander Malishev eb1ae22bb1 DataFlash: fixed inconsistent state after interrupted log download 2018-06-20 09:03:27 +10:00
Peter Barker 611dcb694b DataFlash: write CHIBIOS_GIT_VERSION to opened log file
DataFlash: use AP_FWVersion singleton
2018-06-18 19:10:37 +01:00
Peter Barker beb2147191 DataFlash: use #define instead of constant 90 for data length 2018-06-18 13:50:18 +01:00
Michael du Breuil fba185cefb DataFlash: Fix GPS units 2018-06-18 13:34:16 +01:00
Andrew Tridgell 1283b92cb7 DataFlash: fix for new AP_RTC API 2018-06-15 08:01:22 +10:00
Michael du Breuil 676f60333a DataFlash: Fix power units 2018-06-14 17:50:27 +10:00
Andrew Tridgell 777b4c8cfe DataFlash: avoid stat of current log file
this avoids getting invalid data base for stat() for the current log
file.

It also only gives up writing to a log file if writes fail for 2
seconds. This avoids a temporary write failure causing the log to be
closed (that can happen on ChibiOS with directory listing while writing)
2018-06-14 14:55:41 +10:00
Michael du Breuil c4a66349ef DataFlash: Remove suspend timer calls, restirct flush() to replay 2018-06-06 07:16:58 +10:00
Dr.-Ing. Amilcar do Carmo Lucas 594911f0b4 DataFlash: replace /* fall through */ with FALLTHROUGH; 2018-05-25 08:41:07 +09:00
Peter Barker 63b0883b38 DataFlash: correct structures debug method 2018-05-23 19:12:15 +09:00
Peter Barker 1844ccdab8 DataFlash: correct labels for NKT1 and NKT2 messages 2018-05-23 19:12:15 +09:00
Peter Barker b36f1c558d DataFlash: use const char * rather than fixed array lengths in LogStructure
Previously tridge found that using const char * here meant that the
data segment (and thus RAM usage) would increase.

This doesn't seem to be a problem now.
2018-05-23 17:35:17 +10:00
Francisco Ferreira 221ba177c5 DataFlash: remove Qualcomm board support 2018-05-17 09:57:20 +10:00
night-ghost ecafe263a6 HAL_F4Light: abort logging in case of filesystem errors 2018-05-16 18:55:29 +10:00
Michael du Breuil 7e4972a061 DataFlash: Fix a false reporting of dead IO thread when millis() wraps 2018-05-14 10:11:32 +09:00
Michael du Breuil 703c7fb4b7 DataFlash: Remove unneeded inits and newlines 2018-05-14 10:10:38 +09:00
Patrick José Pereira 04a4001e02 DataFlash: Remove unused variable
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-11 10:47:11 +10:00
Michael du Breuil d819690426 DataFlash: Remove redundant state from MAVLink backend 2018-05-08 11:48:09 +10:00
Dr.-Ing. Amilcar do Carmo Lucas bce10f48af Dataflash: Correct the DF_MAV_STATS time units 2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas 5de3382ab4 Dataflash: Replace ppm (pulses per minute) with PWM in the RC channels 2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas 4fd37d17f0 Dataflash: Fix AHR2.Alt multiplier 2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas babef0def1 Dataflash: Fix some battery units and multipliers 2018-05-08 10:38:40 +09:00
Dr.-Ing. Amilcar do Carmo Lucas a9ca471907 Dataflash: correct the multiplier factor of POS *Alt data 2018-05-08 10:38:40 +09:00
Peter Barker 5bf2fb186c DataFlash: parameterise dataflash-over-mavlink cachesize 2018-05-08 09:36:01 +10:00
Lucas De Marchi 904888fba7 DataFlash: Linux boards never use /fs 2018-05-04 11:42:55 -07:00
night-ghost 1cfdfe55a1 DataFlash: fix HAL_F4light compilation errors 2018-04-30 08:32:58 +10:00