Andrew Tridgell
dbb70fc57c
AP_HAL_AVR_SITL: implement betterstream functions in AP_HAL
...
this gives more consistancy between ports
12 years ago
Michael Oborne
54fc004956
SITL: fix sitl timer issues under cygwin
12 years ago
Andrew Tridgell
bb44fa4385
AP_HAL_AVR_SITL: convert to new AP_HAL printf
12 years ago
Andrew Tridgell
e85d275fe5
SITL: added SIM_SERVO_RATE parameter
...
this allows a slew rate for servos to be specified in degrees/second
12 years ago
Andrew Tridgell
bc3249fada
SITL: fixed Vcc voltage
12 years ago
Andrew Tridgell
a587b1140a
AP_HAL: added voltage_latest() interface
...
this will be used for reading the 5V rail
12 years ago
Andrew Tridgell
f5d20b4085
SITL: reduce the minimum accel and gyro noise
...
on APM2 and PX4 we do a lot of smoothing of accels and gyros, so a 2
bit error isn't a good representation of the min noise
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
33cbe6151a
SITL: support multiple instances of SITL running at once
12 years ago
Andrew Tridgell
e75c48c029
SITL: added simulated NMEA GPS
...
useful for validating the NMEA GPS driver
12 years ago
John Boiles
bb2a6b8a22
HAL_SITL: Fixing SITL build for OSX.
12 years ago
Andrew Tridgell
2316c3bd11
AP_HAL: make storage->write_block() take a const pointer
12 years ago
Andrew Tridgell
e2eca3e273
AP_HAL_AVR_SITL: fixed indent-tabs-mode
12 years ago
Andrew Tridgell
15a84972d1
SITL: added SIM_MAG_ERROR parameter
...
this is a compass yaw error in degrees, used for testing navigation
with a bad compass
12 years ago
Randy Mackay
b914f9ba06
SITL: use SIM_ENGINE_MUL to simulate motor failure
12 years ago
Andrew Tridgell
119ffb0fc0
SITL: fixed simulated airspeed value
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
ed918dc6bc
SITL: use PACKED attribute instead of pragma pack
12 years ago
Andrew Tridgell
4bc53acbda
SITL: support vsnprintf with %S on SITL
12 years ago
Andrew Tridgell
055da3c4b6
SITL: added SIM_GPS_NUMSATS parameter
...
this allows testing of the DCM code with less than 6 satellites
12 years ago
Andrew Tridgell
53ebcfeba5
SITL: fixed compass vector to be based on yaw not GPS heading
...
Many thanks to Randy for noticing this, and apologies for the wasted time!
12 years ago
Andrew Tridgell
5ac493908c
SITL: fixed build with new AnalogIn API
12 years ago
Andrew Tridgell
65183887e5
SITL: use new baro setHIL method
12 years ago
Andrew Tridgell
811c2ccc11
libraries: fixes for AP_Baro_HIL
12 years ago
Andrew Tridgell
a09c53a3ea
SITL: use new HIL compass API
12 years ago
Randy Mackay
bbbd90c430
AP_HAL: rename RCInput's valid() fn to valid_channels
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
0ffc7dab6b
SITL: added GPS speed down to SITL state
12 years ago
Andrew Tridgell
16270ccc47
HAL_AVR_SITL: fixed windows build
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
Andrew Tridgell
fb4e68f0f0
SITL: added SIM_GPS_BYTELOSS option
...
this allows testing of protocol recovery after losing bytes on the GPS
serial link
12 years ago
Andrew Tridgell
3a582663fb
SITL: improve time field handling in simulated GPS
12 years ago
Andrew Tridgell
428966160a
SITL: added support for MTK16 and MTK19 simulated GPS types
12 years ago
Andrew Tridgell
10cd466035
SITL: added simulation of the original MTK GPS
12 years ago
Andrew Tridgell
70f7cde9b8
AP_HAL: added run_debug_shell() hal.util method
12 years ago
Andrew Tridgell
37be83994f
SITL: allow motor multiplier to work on quad simulation
12 years ago
Andrew Tridgell
76092eb590
AP_HAL: remove unused peek() interface from UART drivers
...
this is a bit tricky to implement on some platforms, and is unused
anyway
12 years ago
James Bielman
4fa7bb1486
Add AVR compatibility header for missing math.h definitions.
...
- Define float versions of math functions to the double versions
on AVR (eg. #define sinf sin).
- These macros appear to be missing in older versions of avr-libs.
- Include AP_Math.h rather than math.h to get these definitions.
12 years ago
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
Andrew Tridgell
4c4b6afaff
HAL_AVR_SITL: fixed log dump
...
the sockets need to default blocking, and only be non-blocking per
call
fixes issue #9
12 years ago
Pat Hickey
7b5153c79b
AP_HAL_AVR_SITL: main calls system_initialized
12 years ago
Pat Hickey
a228519b18
AP_HAL_AVR_SITL: Implement new Scheduler methods
12 years ago
Pat Hickey
dd27984eac
SITL: instansiate EmptyI2CDriver with EmptySemaphore
12 years ago
Andrew Tridgell
c16db01395
HAL_SITL: add pragma pack
...
may be needed on some systems
12 years ago
Pat Hickey
bc3b6fcb9f
AP_HAL_AVR_SITL: remove begin/end atomic, adjust timer procs
12 years ago
Andrew Tridgell
091c14a33e
SITL: disabled buffering on stdout
...
this fixes the ArduPlane log dump
12 years ago
Andrew Tridgell
93040e5725
AP_HAL: removed the defer_timer_process() function
...
this is now unused
12 years ago
Andrew Tridgell
8d47a739a1
SITL: fixed a return value in snprintf functions
12 years ago