Alessio Morale
6176f7a1d7
Uncrustify
2015-04-20 14:52:13 +02:00
Laurent Lalanne
2350acb068
OP-1814 Add ResetConsumedEnergy option to flight side
2015-04-04 22:34:22 +02:00
Andres
adcd606e16
OP-1299 uncrustify.
2014-04-13 14:08:34 +02:00
Andres
944e39db07
OP-1299 Small changes proposed in review process.
2014-04-13 14:07:16 +02:00
Andres
598a48a2d9
OP-1299 Added autodetect battery cell number before arming. Tested for LiPo from 2S to 6S. Over 6S counting is not possible for LiPo. Should work for LiCo too. LiFePo works only for 1S or 2S. I was not able to find values for LiFeSO4. FlightBatteryState has now two new fields: NbCells and NbCellsAutodetected, which register the autodetection. FlightBatteryState.NbCells should be used instead of FlightBatterySettings.NbCells now, when the number of cells in needed. FlightBatterySettings.NbCells is used by the user to prescribe a cell number or if equal to zero to ask for autodetection.
2014-04-10 17:28:48 +02:00
Alessio Morale
0db9a9bf8d
OP-1058 Add xxxGet and xxxSet functions to handle multielement fields as struct
...
for example:
EKFStateVariancePSet(EKFStateVariancePData *NewP);
EKFStateVariancePGet(EKFStateVariancePData *NewP);
Also in this case array accessors are renamed as xxxArrayGet/Set:
EKFStateVariancePArraySet(float *NewP);
EKFStateVariancePArrayGet(float *NewP);
Nothing changes for anonymous items as default functions continues to deal with arrays
+review OPReview-552
2013-09-01 13:23:20 +02:00
Alessio Morale
e91bc28667
OP-1058 Get rid of Unions.
...
They caused stack usage increase with -fstrict-aliasing as stack slots are not reused when dealing with unions.
It has now been added the cast_struct_to_array macro in pios_struct_helper.h to handle such case where it is useful to access those homogeneous structs as arrays
+review OPReview-552
2013-09-01 12:10:55 +02:00
Alessio Morale
9e1acc3165
OP-1058: fix needed for fw_revolution code compilation
2013-07-31 15:24:26 +02:00
Alessio Morale
104bae01e8
OP-994 Exclude alarm for estimated flight time if Capacity setting is 0
...
+review OPReview-506
2013-07-15 20:35:26 +00:00
Alessio Morale
402c84c003
OP-994 Added zero calibration settings
...
+review OPReview-506
2013-07-14 20:26:07 +00:00
Alessio Morale
0b8d18ae49
OP-994 Move common defines to architecture specific header
...
+review OPReview-506
2013-06-24 18:50:44 +02:00
Alessio Morale
cea6496866
OP-995: Cleanup of Battery Module
2013-06-08 13:53:19 +02:00
Mathieu Rondonneau
23b2907d08
OP-976: Add the ';' back
...
This compile successfuly with make all_flight
2013-06-03 20:37:40 -07:00
Sexy Pony
900f643bbd
Reformat source code with 'make uncrustify_all' run twice. NO CODE CHANGES
2013-05-19 17:37:30 +03:00
Richard Flay (Hyper)
a2d8544931
OP-931: adds -Wextra compiler option for the flight code, and makes the bazillion code changes required
...
to make the flight code compile again. Needs careful review, particularly all the fixes for the
signed vs unsigned comparisons.
+review OPReview-459
2013-05-05 16:32:24 +09:30
Oleg Semyonov
66db978244
Rename Libraries->libraries, Modules->modules
2013-04-25 13:13:36 +03:00