Andrew Tridgell
fc7f3c8aa6
AP_HAL: fixed example build
11 years ago
Andrew Tridgell
de4d505f62
HAL_AVR: fixed examples build
12 years ago
Andrew Tridgell
7072c52b57
HAL_AVR: removed Console driver
12 years ago
Andrew Tridgell
8e0a136d78
HAL_AVR: mark some examples as not building
12 years ago
Andrew Tridgell
a59f505d25
HAL_AVR: implement an efficient buffer write() call for AVR
...
this saves some cycles in the telemetry code
12 years ago
Andrew Tridgell
6d58f5e188
HAL_AVR: updates for AP_HAL::MemberProc
12 years ago
Andrew Tridgell
0ade02a624
HAL_AVR: updates for new scheduler API
12 years ago
Andrew Tridgell
33fe27a104
AP_HAL_AVR: implement betterstream functions in AP_HAL
...
this gives more consistancy between ports
12 years ago
Andrew Tridgell
b9d6f8e8b1
AP_HAL_AVR: removed unused script
12 years ago
Andrew Tridgell
60122f9877
AP_HAL: moved printf implementation from AP_HAL_AVR to AP_HAL
...
this gives a common printf implementation on all boards, which
simplifies testing, and also simplifies porting to new boards
12 years ago
Andrew Tridgell
16a0dfc38c
HAL_AVR: changed to C implementation of float formatting
...
Many thanks to Soren Kuula for this work!
12 years ago
Andrew Tridgell
a5b29f44d5
AP_HAL: added hal.gpio->usb_connected() function
...
this replaces the USB_MUX_PIN on APM2, and works on PX4 and FMUv2
12 years ago
Andrew Tridgell
23fc6f8aed
AP_HAL_AVR: changed to AP_Vehicle.h
12 years ago
Andrew Tridgell
a80d3344f5
AP_HAL_AVR: support voltage_latest()
12 years ago
Andrew Tridgell
7082e0f8aa
AP_HAL: added hold_in_bootloader parameter to scheduler->reboot()
12 years ago
Andrew Tridgell
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
12 years ago
Andrew Tridgell
0bfc18b72d
HAL_AVR: fixed examples build
12 years ago
Randy Mackay
ac36a09747
AP_HAL: add toggle to GPIO
12 years ago
Andrew Tridgell
63873d6af3
HAL_AVR: fixed example build
12 years ago
Andrew Tridgell
c691e16139
HAL_AVR: fixed example build
12 years ago
Tobias
ce6529734c
HAL_AVR: reorder parameters to remove a warning with -Wreorder
12 years ago
tobias
4e7fea787b
HAL_AVR: corrected includes to replace #include "$HEADER" with #inlcude "utility/$HEADER"
...
adding -I for EVERY DIRECTORY isn't desirable
http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
12 years ago
Andrew Tridgell
25f8983383
HAL_AVR: don't initialise TWBR twice
12 years ago
Randy Mackay
b16ce5e523
AVR I2C: bug fix
...
Fix provided by both Jason Short and lucafedechen independently
12 years ago
Andrew Tridgell
2316c3bd11
AP_HAL: make storage->write_block() take a const pointer
12 years ago
Andrew Tridgell
3c9d45d7d0
HAL_AVR: avoid writing bytes to EEPROM that are already correct
...
this speeds up writing of waypoint data, reducing latency
12 years ago
Andrew Tridgell
c82caeeba1
HAL_AVR: configure analog inputs as INPUT without pullup
...
not all pins were defaulting to this, which led to some strange
readings on some devices. First noticed by Andi on a LM335 temperature
sensor
12 years ago
Randy Mackay
ad00e0ee1e
ACMotors: make test_order uint_8
12 years ago
Andrew Tridgell
a5b20b4dfc
AP_HAL: removed scaling factor on analog sources
...
these are not use anymore, as voltage_average() is used instead
12 years ago
Andrew Tridgell
589b8cdb58
AP_HAL: added voltage_average_ratiometric() call to AnalogIn
...
this is for ratiometric sensors such as the 3DR airspeed sensor and
the Maxbotix analog sonar
12 years ago
Andrew Tridgell
912ed2c97c
HAL_AVR: initialise settle time
12 years ago
Andrew Tridgell
e7a6b12ac1
HAL_AVR: support set_stop_pin() and set_settle_time() for analogin
...
useful for dual sonar support
12 years ago
Randy Mackay
00146ca97d
AP_HAL: fix another RCInput compile error
12 years ago
Randy Mackay
e7122b85ed
AP_HAL: example compile error fix
12 years ago
Randy Mackay
bbbd90c430
AP_HAL: rename RCInput's valid() fn to valid_channels
12 years ago
Randy Mackay
a28c6df611
RCInput: allow ppmsum of less than 8 channels
12 years ago
Andrew Tridgell
5f1bd1a452
HAL_AVR: constrain Vcc used in voltage_average()
...
this ensures a bad Vcc reading doesn't throw off analog inputs too
much
12 years ago
Andrew Tridgell
af7381e9e0
AP_HAL: added register_io_process()
...
this is used to register a low priority IO task. Used for file IO in
DataFlash_File.cpp
12 years ago
Andrew Tridgell
eb6c66af7e
AP_HAL: added gpio->analogPinToDigitalPin() API
12 years ago
Andrew Tridgell
a6b21443c4
HAL_AVR: fixed null termination of vsnprintf()
12 years ago
Andrew Tridgell
ba8ba36af4
HAL_AVR: fixed build.Examples in autotest
12 years ago
John Arne Birkeland
9487eb6c1b
Examples: Improved compatibility with Mission Planner serial terminal (CLI)
12 years ago
Andrew Tridgell
b1c27407a2
AP_HAL: added voltage_average() interface to AnalogIn
...
returns voltage in Volts, using averaged reading over samples.
Where possible this should be auto-scaled against a known reference
voltage
12 years ago
John Arne Birkeland
fc566096de
AVR HAL: RCJitterTest example
...
Used to test jitter on the PPM R/C input system.
12 years ago
Andrew Tridgell
a3ef58ac92
AP_HAL: moved AnalogIn example to generic examples
...
it is not AVR specific anymore
12 years ago
Andrew Tridgell
5b92c67286
HAL_AVR: fixed analog input with high channel numbers
12 years ago
Andrew Tridgell
fae396e64f
HAL_AVR: expand analog input test to more channels
12 years ago
Andrew Tridgell
70f7cde9b8
AP_HAL: added run_debug_shell() hal.util method
12 years ago
Andrew Tridgell
db8da71f65
Revert "AP_HAL_AVR: Improved AVRTimer micros() and millis()"
...
This reverts commit 527dcdf3b9
.
This was causing the MPU6000 startup code to fail, due to time running
backwards.
12 years ago
John Arne Birkeland
527dcdf3b9
AP_HAL_AVR: Improved AVRTimer micros() and millis()
...
- More efficient code by using 16-bit timer
- micros() now has proper 1 us resolution and less overhead
- millis() has less overhead
- removed unneeded/unwanted initializatin of timers in AVRTimer::init()
pull request 62, approved and merged by pat
12 years ago