Jason Short
ce338071eb
RC_Channel tweaks. using Radio_trim rather than 1500 in Raw output. Cleaned up line in calc PWM to be easier to read.
14 years ago
Jason Short
231e7e961c
changed PI to float
14 years ago
Jason Short
bf94ba551e
changed PI Library to take Float for DeltaTime
...
Changed timing to be more accurate in main loop. Still need to switch to micros(). Left that for Tridge. This gets rid of six floating point calcs *250. Nice!
14 years ago
Andrew Tridgell
f375258699
fixed inconsistent linefeeds in ADC code
...
the linefeeds had bacome inconsistent in this library, making some
editors fail to load the code
14 years ago
Andrew Tridgell
edd7e509d9
MAVLink: enable separate MAVLink helpers
...
this makes the core MAVLink functions into library calls, instead of
being inlined. The resulting code size doesn't change, but it means we
can safely call MAVLink functions from multiple places without causing
undue code bloat
14 years ago
Amilcar Lucas
227ce0a92d
Merge some small misc improvements from APM_Camera branch
14 years ago
Andrew Tridgell
8b90ad84f6
fixed ArduCopter HIL build
14 years ago
Andrew Tridgell
3c69404d5b
fixed build of OpticalFlow code
14 years ago
Andrew Tridgell
a835912d93
ADC: randomise the sampling rate
...
this is based on suggestions from Kari and Mike, and should reduce the
aliasing effects we get from the simple averaging
14 years ago
Andrew Tridgell
ba6c58a33c
build: cope with more depths for libraries
...
this finds the libraries at more levels up from the current directory
14 years ago
Andrew Tridgell
840c256fe3
ADC: show timing information in ADC test
14 years ago
Andrew Tridgell
197b1d140a
show noise levels in ADC test
14 years ago
Andrew Tridgell
1d68953416
ADC: the bottom 3 bits of ADC output are always zero
...
its a 12 bit ADC .... silly of me to think the bottom 3 bits are
valid!
14 years ago
Andrew Tridgell
bd30840518
updated ADC test for new API
14 years ago
Andrew Tridgell
9af7021a98
change ADC sample rate to 1kHz
...
this costs us about 9% of our CPU, but should make aliasing much less
of a problem.
14 years ago
Andrew Tridgell
acb4538073
RangeFinder: use new ADC interface
...
the new interface gives values 8 times as large as previously
14 years ago
Andrew Tridgell
9314dcaa89
DCM: re-work the DCM to use the new IMU/ADC features
...
this gives us higher resolution DCM calculations, with much more
accurate timing of the update delta time.
14 years ago
Andrew Tridgell
8b3d9400e5
IMU: re-work the IMU library to take advantage of the ADC Ch6() call
...
This changes the IMU code to read 6 synchronised ADC channels at one
time, giving us matching values, and exposing the exact averaging time
to callers
14 years ago
Andrew Tridgell
70bf945d40
ADC: re-work for ADC code for full resolution and accurate timing
...
this changes the ADC code to return the full resolution of the
sensors. It also adds a new Ch6() interface that returns 6 channels at
once, so the IMU can read 3 accelerometers and 3 gyros at once, and
get the exact time that the values were accumulated over
14 years ago
Andrew Tridgell
3a9b7d6458
GPS: change example serial rate to 115200
...
this matches default for AP/AC
14 years ago
Andrew Tridgell
a5d2e96dc6
barometer: print a message on barometer init in example code
...
this helps track down initialisation problems
14 years ago
Jason Short
45778a4e81
added sin and cos yaw from DCM, renamed "get" function because it doesn't return a value.
14 years ago
Jason Short
cd72e6bea9
roughed in an expo option idea
...
made min and max values 1100, 1900
removed hard coded init for camera values
14 years ago
Jason Short
d29cfbcee3
Integration of optical flow
...
bug fixes for new Simple mode
increased Baro filter by 2 fields
14 years ago
Janne M
d5e5240e19
Issue #415 : Modified spotlight search string. Added UPLOAD_PROTOCOL parameter to makefile to use different programmer.
14 years ago
Mike Smith
42abbb41fd
Add options to generate assembly listings for all of the compiled
...
files. This is a possible starting point for a tool to analyse the
call graph and stack usage of APM.
It's also interesting by itself.
14 years ago
unknown
a4e001bbcf
Adding CMake support
14 years ago
Amilcar Lucas
1f29197771
Revert more of 6dcbc7f44bc0.
...
Fix an issue with initialization of channels that on-line changed their function.
For the curious people that the code size overhead of having any aux channel do any function (with this code) is 44 bytes.
To see wich code I'm talking about, do a git diff 05057ac2d455..this_commit (replace this commit with the commit hash of this commit)
14 years ago
Amilcar Lucas
f08cea8044
These changes were meant to be inside commit a14c06adc06b. I'm sorry but reverting stuff is not that easy
14 years ago
Amilcar Lucas
5406991831
Added support for routing any function to any of the aux. servos.
...
This is a manual merge from the APM_Camera branch.
It reverts the stuff that Oliver did not menat to do with his commit 6dcbc7f44bc0
14 years ago
Jason Short
ecd14f4425
Cleaned up guided mode
...
Reduced ADC filter to 3 from 6 to increase speed of filter.
14 years ago
DrZiplok
c0b4cb661f
GNU sed wants -r, Darwin/BSD sed wants -E.
14 years ago
Amilcar Lucas
c7b3bfd295
Use the G_RC_AUX macro when possible. Added more comments. Remove unused code
14 years ago
Mike Smith
c1460add3b
Reinstate a Cygwin workround that was backed out by the previous changes.
...
Not all platforms support (or require) the -r argument to sed.
14 years ago
Amilcar Lucas
77c798abd5
Use G_RC_AUX macro to simplify accessing the auxiliary servos
14 years ago
Amilcar Lucas
46f9d4cec8
This is ugly, but it fixes compilation on arduino
14 years ago
Amilcar Lucas
ce010b4e38
Moved update_aux_servo_function() to the RC_Channel_aux.* files.
...
This simplifies code sharing between ArduCopter and Arduplane at the expense of 48bytes.
Moved CH_x defines out of the defines.h file and into the library where they belong
14 years ago
Jason Short
d50ed35077
Added a state machine intended to run at 250hz to the DCM. Spread load of DCM out to lower CPU.
14 years ago
Amilcar Lucas
213969202a
Moved the RC_Channel_aux class to its own file. The includes could be improved, has anyone got any ideas how ?
14 years ago
Amilcar Lucas
c5fd792024
Make the switch case complete
14 years ago
Amilcar Lucas
9f14c5f578
Fix RC range reversal
14 years ago
Amilcar Lucas
dd19a7302d
I do not understand this, but it looks like it needs int8 here
14 years ago
Amilcar Lucas
84f108d598
Fix manual values mapping
14 years ago
Amilcar Lucas
d84f80cb0d
Moved enum values around to make code simpler to read and use
14 years ago
Amilcar Lucas
386e80eaf6
Added comments and TODO
14 years ago
Andrew Tridgell
0a793a1327
Revert "added support for AP_ADC MAVLink packet"
...
This reverts commit a65a2dda2c1bfa95437880227a3abddc95b329f5.
I am reverting this not for any sane reason, but because my 3 APM
boards now lock up on any I2C operation, and I don't know why. I can't
see how this change could have caused it, but I don't want to take the
chance.
14 years ago
Andrew Tridgell
a2c1caacf5
Revert "added support for AP_ADC MAVLink packet"
...
This reverts commit a65a2dda2c1bfa95437880227a3abddc95b329f5.
I am reverting this not for any sane reason, but because my 3 APM
boards now lock up on any I2C operation, and I don't know why. I can't
see how this change could have caused it, but I don't want to take the
chance.
14 years ago
Andrew Tridgell
95af8dc172
mavlink: import new version with AP_ADC packet
...
this adds the AP_ADC packet which gives us raw ADC values
14 years ago
Amilcar Lucas
f4998c3673
Moved a function from radio.pde to the RC_Channel_aux library. Now its more readable and reusable
14 years ago
Amilcar Lucas
b3d4bb1478
Again remove some more files from the APM_Camera branch
14 years ago