1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00
Commit graph

13 commits

Author SHA1 Message Date
Dominic Clifton
8cc9e8ca37 More relocation of variables. 2015-02-01 00:03:46 +01:00
Pierre Hugo
be03ed95fa Renamed min, max and abs macros to MIN MAX and ABS. 2015-01-23 22:40:00 -08:00
Pierre Hugo
6711c56dc5 Switched to explicitly using M_PI. 2015-01-21 19:20:19 -08:00
Dominic Clifton
19ea3a60fd GPS - cleanup and fix home/hold mode transitioning. 2014-12-15 11:53:59 +00:00
Dominic Clifton
8345401ff2 GPS - Demystify some magic numbers. 2014-12-12 14:41:49 +00:00
Dominic Clifton
be1367059d GPS - cleanup nagivation reset flag usage. 2014-12-11 18:02:12 +00:00
Dominic Clifton
78f7a35f4f GPS - minor code readability improvements. 2014-12-11 17:20:29 +00:00
Dominic Clifton
237ce4ba5b Reset navigation if sat count is too low. 2014-12-11 15:40:14 +00:00
Dominic Clifton
c0fd0c1f33 Replace profile.activate and rcOptions with
profile.modeActivationCondition and rcModeActivationMask.

Implementation of using and setting modeActivationConditions is missing.
2014-10-12 10:40:38 +01:00
Dominic Clifton
03a5a20351 Fix unable to disable GPS HOME mode. Fixes #91. 2014-09-27 00:20:04 +01:00
Dominic Clifton
d5f5fdb403 Fix unable to disable GPS home mode via switch. Fixes #87. 2014-09-22 19:01:07 +01:00
Dominic Clifton
3f0754d295 Replace global flags with stateFlags, flightModeFlags and armingFlags.
Each flag was previously a whole byte, now all of the flags only take up
4 bytes as they are represented by bit masks.

This is cleaner because the different kind of flags are now separated.

Additionally this changes the behaviour of arming slightly.  When using
a switch to arm the aircraft will not arm unless the switch has been in
the off state once.  This prevents arming if you power the aircraft with
a low throttle and the switch in the on position.
2014-08-24 12:11:30 +01:00
Dominic Clifton
9906294cd8 Split navigation functionality from io/gps.c into flight/navigation.c.
gps.c now only has code that deals with gps hardware, state and
messaging.
navigation.c  now only has code dealing with flight
navigation/waypoints/home/hold/etc
2014-08-07 14:23:05 +01:00