Konstantin Sharlaimov (DigitalEntity)
1a5c9c9612
Add sbuf size check to MSP_BOX_NAMES
2017-09-11 17:36:13 +10:00
Martin Budden
bb4017d1c3
Added safe sbuf read functions with examples
2017-09-10 23:29:30 +01:00
Alberto García Hierro
6c8d1303dc
Implement changes suggested during review
...
- Move implementation to common/time.
- Use camelCase for function names.
- Store just one value for the RTC, the real time when system
was started.
- Store real time as the number of milliseconds from 1970-01-01.
- Remove BB functions for manipulating time, query the RTC
directly when BB is started.
2017-09-09 14:16:53 +01:00
Alberto García Hierro
4d4d098153
Initial support for RTC
...
- Add software RTC support in drivers/rtc.c
- Add MSP_SET_RTC with code 246. Sets the RTC from a unix timestamp
(int32_t) and a nanoseconds number (uint32_t).
- Display the current time in response to the CLI status command.
2017-09-09 11:15:17 +01:00
Konstantin Sharlaimov (DigitalEntity)
eeae281f7f
Bugfix in dataflash read payload size
2017-08-27 23:10:33 +10:00
Konstantin Sharlaimov (DigitalEntity)
ae8e648e7a
Refactor ESC passthrough; Allow bigger size dataflash reads
2017-08-27 21:35:26 +10:00
Alberto García Hierro
afc0a3d413
Respect feature AIRMODE
...
While the AIRMODE feature is available in the CLI, the current
code only takes BOXAIRMODE into account (triggered by an RC channel).
This PR introduces an isAirmodeActive() function which also returns
true when if the AIRMODE feature has been set, not only when BOXAIRMODE
is active. Checks for IS_RC_MODE_ACTIVE(BOXAIRMODE) have been replaced
by calls to isAirmodeActive().
This will allow adding a simple switch in the configurator, as
reported in https://github.com/iNavFlight/inav-configurator/issues/154 .
Eventually, isAirmodeActive() might be modified to always
return true in FW, since there's no reason to disable it in FW
models AFAIK.
2017-08-20 20:16:48 +02:00
Konstantin Sharlaimov
4d072b1deb
Merge branch 'development' into de_bitarray_boxes
2017-08-16 15:40:18 +10:00
Konstantin Sharlaimov (DigitalEntity)
d7662d1684
Rename blackbox_baudrate to peripheral_baudate
2017-08-09 17:38:02 +10:00
Konstantin Sharlaimov (DigitalEntity)
d7de808f86
Allow more than 32-bit active box mask; New MSP_ACTIVEBOXES frame to report full width flags
2017-08-08 23:15:17 +10:00
Konstantin Sharlaimov (DigitalEntity)
24a8e2ac6f
Refactor how active BOX modes are packed into 32-bit flags
2017-08-08 23:14:50 +10:00
Konstantin Sharlaimov (DigitalEntity)
c03c7d6bce
Add bitarray support; Migrage rcModeActivationMask to bitArray
2017-08-08 23:14:10 +10:00
azolyoung
fa603a27ef
add runcam split support ( #1977 )
...
Add runcam split support
USE_RCSPLIT definition for FLASH_SIZE > 128 in common.h
2017-08-08 22:39:27 +10:00
Martin Budden
c084ffc881
Whitespace tidy
2017-07-05 09:57:00 +01:00
Martin Budden
fd7d770fb1
Whitespace tidy
2017-07-05 07:42:07 +01:00
Konstantin Sharlaimov
05da1ef121
Merge pull request #1852 from iNavFlight/dzikuvx-sonar-rangefinder-overhaul
...
Sonar/Rangefinder/Surface renaming and rangefinder code improvements
2017-07-04 17:19:32 +10:00
Pawel Spychalski (DzikuVx)
cfc911bee4
Thank you, Travis
2017-07-02 21:18:43 +02:00
Pawel Spychalski (DzikuVx)
4291011e2a
define RANGEFINDER renamed to USE_RANGEFINDER
2017-07-02 20:31:33 +02:00
Pawel Spychalski (DzikuVx)
bdba06aac1
overhaul - step1
2017-07-01 22:01:10 +02:00
Pawel Spychalski (DzikuVx)
57c4b66fa7
SMIX MIN and MAX removed
2017-07-01 15:21:36 +02:00
Pawel Spychalski (DzikuVx)
8578b9d85d
MSP_FW_CONFIG frame
2017-05-23 15:13:06 +02:00
Pawel Spychalski (DzikuVx)
9e7ebe3998
MSP frame for RTH and landing
2017-05-17 20:45:22 +02:00
Martin Budden
5874f92f87
Moved accgyro, barometer and compass drivers into subdirectories
2017-04-29 06:45:42 +01:00
Konstantin Sharlaimov (DigitalEntity)
aae5f497ab
Add MSP_WP_GETINFO command to get waypoint capabilities
2017-04-18 23:39:48 +10:00
Konstantin Sharlaimov
e4ec0eb146
Merge pull request #1453 from Linjieqiang/removeMinMaxAngle
...
Delete unused 'angleAtMin' and 'angleAtMax'.
2017-03-30 20:24:56 +10:00
Konstantin Sharlaimov
ebf4606942
Merge branch 'development' into fw-autotune
2017-03-30 19:58:57 +10:00
Konstantin Sharlaimov
44cfad464b
Merge pull request #1401 from iNavFlight/nav-cleanups-fixes
...
Speed control and RTH/FAILSAFE improvements
2017-03-30 18:38:44 +10:00
Konstantin Sharlaimov (DigitalEntity)
c9b161593b
Remove failsafe_kill_switch setting; Replace with new KILLSWITCH box mode
2017-03-29 10:08:22 +10:00
linjieqiang
e3efb3429f
Add sbufReadU8(src) and sbufWriteU8(dst, 0) in fc_msp.c
2017-03-24 21:12:15 +08:00
linjieqiang
9cc29be1ea
CF/BF/INAV - Delete unused 'angleAtMin' and 'angleAtMax'.
2017-03-24 11:40:56 +08:00
Konstantin Sharlaimov (DigitalEntity)
303b7ede93
Initial cut on fixed-wing autotune
2017-03-20 20:45:26 +10:00
Konstantin Sharlaimov (DigitalEntity)
0e4833f41e
Rename MAG mode to HEADING LOCK mode; Allow to operate without compass
2017-03-19 16:07:54 +10:00
Konstantin Sharlaimov (DigitalEntity)
4f4bdbb976
Remove heading lock mode entirely
2017-03-19 15:28:01 +10:00
Konstantin Sharlaimov
1be0bc6618
Merge pull request #1235 from iNavFlight/failsafe-msp-api
...
Add new failsafe parameters to MSP
2017-03-14 19:48:09 +10:00
Martin Budden
5b66844cbb
Removed gyroDev_t from gyro_t
2017-03-14 07:45:30 +00:00
Konstantin Sharlaimov (DigitalEntity)
8b7a14aea7
Split auto/manual speed and climb rate limitation; Remove 2D RTH; RTH safety refactoring
2017-03-13 21:14:42 +10:00
Konstantin Sharlaimov (DigitalEntity)
ec0e5a8f64
Missing MSP read for MSP_SET_SENSOR_CONFIG
2017-03-12 20:58:05 +10:00
Pawel Spychalski (DzikuVx)
ca5bb45302
gpsMinSats readded to MSP_POSITION_ESTIMATION_CONFIG frame
2017-02-20 10:41:37 +01:00
Michael Jakob
3c38ae69b2
AlienFlight F3 fixes
2017-02-12 11:22:41 +01:00
Konstantin Sharlaimov (DigitalEntity)
bd66757581
MSP API for load/save mission
2017-02-10 00:09:21 +10:00
Martin Budden
ec61801c23
Renamed useRcControlsConfig to updateUsedModeActivationConditionFlags
2017-02-08 08:19:18 +00:00
Martin Budden
5fcd222cc7
Split time declarations out of system.h into time.h
2017-02-07 17:01:02 +00:00
Konstantin Sharlaimov
dcc163f185
Merge pull request #1229 from iNavFlight/nav-improvements
...
Navigation and GPS improvements
2017-02-05 21:07:23 +10:00
Konstantin Sharlaimov (DigitalEntity)
06728447ba
Add new failsafe parameters to MSP
2017-02-05 19:05:49 +10:00
Konstantin Sharlaimov (DigitalEntity)
ad0b3aa856
Fix structure alignment issues with servoConfig_t and MSP_SET_SERVO_CONFIGURATION
2017-02-05 12:44:17 +10:00
Konstantin Sharlaimov (DigitalEntity)
dd723fca2b
Option to control altitude zero reset logic; Moved gps_num_sats to gpsConfig and made system-wide for GPS_FIX acquisition
2017-02-04 22:03:09 +10:00
Konstantin Sharlaimov (DigitalEntity)
cc2d7b01de
Move 3d_deadband_throttle to rcControlsConfig
2017-02-01 01:02:19 +10:00
Konstantin Sharlaimov (DigitalEntity)
8811a87ca6
Fix misplaced deadband3d_throttle
2017-02-01 00:48:05 +10:00
Konstantin Sharlaimov (DigitalEntity)
afe1e31be9
Merge branch 'development' into failsafe-stage1-mods
2017-01-30 19:46:09 +10:00
Konstantin Sharlaimov
688f90e2a2
Merge pull request #1093 from iNavFlight/sonar-rework
...
Sonar - refactor the code to use detection and configuration like all other sensors
2017-01-30 19:32:50 +10:00