Andrew Tridgell
65ebdfa786
HAL_SITL: fixed time strings in simulated NMEA GPS
2013-10-24 14:22:48 +11:00
Andrew Tridgell
b7b9efd120
HAL_SITL: properly emulate timestamps on ublox and MTK
2013-10-24 14:22:47 +11:00
Andrew Tridgell
6438be74e0
HAL_SITL: get the ublox GPS timestamps right in SITL
2013-10-24 14:22:47 +11:00
Andrew Tridgell
86afc26609
HAL_SITL: decrease wind with altitude
...
this prevents JSBSim crash on the runway
2013-10-17 17:22:19 +11:00
Andrew Tridgell
ede927f68a
HAL_SITL: added airspeed noise control
2013-10-14 15:40:45 +11:00
Andrew Tridgell
55ba536331
HAL_SITL: fixed a warning
2013-10-12 13:13:00 +11:00
Andrew Tridgell
930d664677
AVR_SITL: removed Console driver
2013-10-05 18:32:23 +10:00
Andrew Tridgell
c035eef845
HAL_SITL: implement a dummy buffered write
2013-10-03 12:21:07 +10:00
Randy Mackay
db2975901d
AP_HAL_AVR_SITL: use SIM_BATT_VOLTAGE parameter
2013-10-03 11:16:36 +09:00
Andrew Tridgell
c7df0eaf2a
SITL: added battery voltage and current
...
assume 3DR brick
2013-10-03 11:16:14 +09:00
Andrew Tridgell
42bc8b12df
SITL: added a SIM_GPS_HZ option
...
this allows simulation of slow GPS updates (for example, the 1Hz GPS
problem)
2013-10-01 16:39:16 +10:00
Andrew Tridgell
82fe40224b
HAL_AVR_SITL: updates for AP_HAL::MemberProc
2013-09-30 20:56:15 +10:00
Andrew Tridgell
350af4d92f
HAL_AVR_SITL: updates for InertialSensor
2013-09-28 22:04:15 +10:00
Andrew Tridgell
c08f29fca6
HAL_AVR_SITL: updates for new scheduler API
2013-09-28 21:24:02 +10:00
Randy Mackay
c6a99ac24a
AutoTest: add support for GPS glitching
2013-09-24 21:41:04 +09:00
Andrew Tridgell
dbb70fc57c
AP_HAL_AVR_SITL: implement betterstream functions in AP_HAL
...
this gives more consistancy between ports
2013-09-22 12:21:22 +10:00
Michael Oborne
54fc004956
SITL: fix sitl timer issues under cygwin
2013-09-21 22:06:38 +10:00
Andrew Tridgell
bb44fa4385
AP_HAL_AVR_SITL: convert to new AP_HAL printf
2013-09-21 13:29:12 +10:00
Andrew Tridgell
e85d275fe5
SITL: added SIM_SERVO_RATE parameter
...
this allows a slew rate for servos to be specified in degrees/second
2013-09-16 09:16:52 +10:00
Andrew Tridgell
bc3249fada
SITL: fixed Vcc voltage
2013-09-12 16:34:38 +10:00
Andrew Tridgell
a587b1140a
AP_HAL: added voltage_latest() interface
...
this will be used for reading the 5V rail
2013-09-12 13:23:04 +10:00
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
2013-09-09 18:04:40 +10:00
Andrew Tridgell
7082e0f8aa
AP_HAL: added hold_in_bootloader parameter to scheduler->reboot()
2013-09-04 11:58:13 +10:00
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
2013-08-30 13:01:39 +10:00
Andrew Tridgell
33cbe6151a
SITL: support multiple instances of SITL running at once
2013-08-14 16:35:24 +10:00
Andrew Tridgell
e75c48c029
SITL: added simulated NMEA GPS
...
useful for validating the NMEA GPS driver
2013-08-14 14:36:44 +10:00
John Boiles
bb2a6b8a22
HAL_SITL: Fixing SITL build for OSX.
2013-07-05 22:36:57 +10:00
Andrew Tridgell
2316c3bd11
AP_HAL: make storage->write_block() take a const pointer
2013-06-04 14:02:13 +10:00
Andrew Tridgell
e2eca3e273
AP_HAL_AVR_SITL: fixed indent-tabs-mode
2013-05-30 09:54:53 +10:00
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
2013-05-27 13:37:34 +10:00
Randy Mackay
b914f9ba06
SITL: use SIM_ENGINE_MUL to simulate motor failure
2013-05-19 14:29:08 +09:00
Andrew Tridgell
119ffb0fc0
SITL: fixed simulated airspeed value
2013-05-13 15:42:38 +10:00
Andrew Tridgell
a5b20b4dfc
AP_HAL: removed scaling factor on analog sources
...
these are not use anymore, as voltage_average() is used instead
2013-05-13 15:29:42 +10:00
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
2013-05-13 15:12:43 +10:00
Andrew Tridgell
ed918dc6bc
SITL: use PACKED attribute instead of pragma pack
2013-05-09 20:10:31 +10:00
Andrew Tridgell
4bc53acbda
SITL: support vsnprintf with %S on SITL
2013-05-08 16:17:36 +10:00
Andrew Tridgell
055da3c4b6
SITL: added SIM_GPS_NUMSATS parameter
...
this allows testing of the DCM code with less than 6 satellites
2013-05-07 10:38:36 +10:00
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!
2013-05-04 14:28:08 +10:00
Andrew Tridgell
5ac493908c
SITL: fixed build with new AnalogIn API
2013-05-03 10:08:39 +10:00
Andrew Tridgell
65183887e5
SITL: use new baro setHIL method
2013-05-02 15:27:27 +10:00
Andrew Tridgell
811c2ccc11
libraries: fixes for AP_Baro_HIL
2013-05-02 15:09:05 +10:00
Andrew Tridgell
a09c53a3ea
SITL: use new HIL compass API
2013-05-02 15:01:47 +10:00
Randy Mackay
bbbd90c430
AP_HAL: rename RCInput's valid() fn to valid_channels
2013-04-29 15:05:53 +09:00
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
2013-04-17 21:33:50 +10:00
Andrew Tridgell
0ffc7dab6b
SITL: added GPS speed down to SITL state
2013-03-28 10:29:12 +11:00
Andrew Tridgell
16270ccc47
HAL_AVR_SITL: fixed windows build
2013-03-03 22:22:19 +11:00
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
2013-03-03 16:16:01 +11:00
Andrew Tridgell
fb4e68f0f0
SITL: added SIM_GPS_BYTELOSS option
...
this allows testing of protocol recovery after losing bytes on the GPS
serial link
2013-02-16 22:00:16 +11:00
Andrew Tridgell
3a582663fb
SITL: improve time field handling in simulated GPS
2013-02-16 21:36:06 +11:00
Andrew Tridgell
428966160a
SITL: added support for MTK16 and MTK19 simulated GPS types
2013-02-16 20:59:48 +11:00
Andrew Tridgell
10cd466035
SITL: added simulation of the original MTK GPS
2013-02-16 20:16:13 +11:00
Andrew Tridgell
70f7cde9b8
AP_HAL: added run_debug_shell() hal.util method
2013-02-07 15:04:33 +11:00
Andrew Tridgell
37be83994f
SITL: allow motor multiplier to work on quad simulation
2013-01-22 21:22:01 +11:00
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
2013-01-16 14:43:18 +11:00
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.
2013-01-16 13:52:17 +11:00
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.
2013-01-16 13:52:01 +11:00
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
2013-01-14 08:26:29 +11:00
Pat Hickey
7b5153c79b
AP_HAL_AVR_SITL: main calls system_initialized
2013-01-10 14:37:22 -08:00
Pat Hickey
a228519b18
AP_HAL_AVR_SITL: Implement new Scheduler methods
2013-01-10 14:07:43 -08:00
Pat Hickey
dd27984eac
SITL: instansiate EmptyI2CDriver with EmptySemaphore
2013-01-04 16:20:22 -08:00
Andrew Tridgell
c16db01395
HAL_SITL: add pragma pack
...
may be needed on some systems
2013-01-05 08:01:30 +11:00
Pat Hickey
bc3b6fcb9f
AP_HAL_AVR_SITL: remove begin/end atomic, adjust timer procs
2013-01-03 17:33:14 -08:00
Andrew Tridgell
091c14a33e
SITL: disabled buffering on stdout
...
this fixes the ArduPlane log dump
2012-12-24 08:00:57 +11:00
Andrew Tridgell
93040e5725
AP_HAL: removed the defer_timer_process() function
...
this is now unused
2012-12-21 20:01:42 +11:00
Andrew Tridgell
8d47a739a1
SITL: fixed a return value in snprintf functions
2012-12-20 22:46:22 +11:00
Andrew Tridgell
9931009db2
Math: use pythagorous2() in some more places
2012-12-20 15:16:18 +11:00
Andrew Tridgell
60d3df50ae
AP_HAL: changed delay() to take a uint16_t
...
this allows for up to 32 second delays, and saves a bit of flash space
2012-12-20 14:53:23 +11:00
Pat Hickey
823efc4734
AP_HAL_AVR_SITL: implement BetterStream's vprintf methods
2012-12-20 14:53:22 +11:00
Pat Hickey
ec8f08d743
AP_HAL_AVR_SITL: rename vprintf utility to print_vprintf
2012-12-20 14:53:22 +11:00
Pat Hickey
4c715bfd04
AP_HAL_AVR_SITL: add Util driver, fix deprecated deps on HAL_AVR.h
2012-12-20 14:52:37 +11:00
Andrew Tridgell
7ecf8981b9
SITL: added dummy SPI and make RCInput 50Hz
2012-12-20 14:52:34 +11:00
Andrew Tridgell
e020694c03
SITL: fixed build of apm1/apm2 target
2012-12-20 14:52:34 +11:00
Andrew Tridgell
abbe37be37
SITL: added emulated airspeed sensor on a pin
2012-12-20 14:52:33 +11:00
Andrew Tridgell
46f7c9e92b
SITL: added basic analogin implementation
2012-12-20 14:52:33 +11:00
Andrew Tridgell
472b45bc2a
SITL: fixed use of local printf() method in UART driver
2012-12-20 14:52:33 +11:00
Andrew Tridgell
7be507948f
SITL: added SITL_State::loop_hook()
...
this prevents us using so much CPU time, and ensures stdout is flushed
2012-12-20 14:52:33 +11:00
Andrew Tridgell
0c9d37e2ee
SITL: added RCInput and RCOutput
2012-12-20 14:52:33 +11:00
Andrew Tridgell
dcc17dad94
SITL: added panic() method in scheduler
2012-12-20 14:52:33 +11:00
Andrew Tridgell
5f7f6966af
SITL: fixed GPS and UART startup
2012-12-20 14:52:32 +11:00
Andrew Tridgell
334b96b375
SITL: switched to empty driver for unimplemented backends
2012-12-20 14:52:32 +11:00
Andrew Tridgell
98ead51801
SITL: fill in a lot more of the AP_HAL SITL backend
2012-12-20 14:52:30 +11:00
Pat Hickey
63eb1dc85d
AP_HAL_AVR_SITL: separate header for AP_HAL_MAIN and Private
2012-12-20 14:52:30 +11:00
Andrew Tridgell
8916b280fd
SITL: filled in more of the HAL SITL backend
2012-12-20 14:52:29 +11:00
Andrew Tridgell
18824c7ef5
AP_HAL: expose argc/argv in hal.init()
...
used for SITL port
2012-12-20 14:52:29 +11:00
Andrew Tridgell
d42cbb791f
HAL_SITL: start filling in more of SITL framework
2012-12-20 14:51:40 +11:00
Pat Hickey
54bab59066
AP_HAL_AVR_SITL: add initial scaffolding
2012-12-20 14:51:38 +11:00