Michael Oborne
762b1ea0df
APM Planner 1.1.62
...
3dr Radio support
update mavlink library
13 years ago
rmackay9
127a990509
AP_MotorsOcta - V Frame - test order fix spotted by David Wiens
13 years ago
Michael Oborne
647654ac8e
APM Planner - WIP - no exe
...
3DR R
setup layout - thanks andrew.
13 years ago
Michael Oborne
62f30aae07
APM Planner 1.1.61
...
update message definitions
fix radio screen
13 years ago
rmackay9
f6e1509d05
AP_Motors - fixed last "shadowing" compiler warning caused by badly named parameter in auto_armed method.
13 years ago
rmackay9
1e20d7de88
AP_MotorsMatrix - fixed another compiler error regarding shadowing a variable. Fixed by removing those the angle and direction arrays which weren't even used
13 years ago
rmackay9
7a8973eaf0
AP_MotorsHeli - fixed compiler warning re move_swash function declared with int parameters in .h file but actually using int16_t in .cpp file. They're the same in arduino but perhaps the build checker is a little more strict that Arduino.
13 years ago
rmackay9
926211f0f0
AP_Motors - fix compiler warning re shadowing a variable caused by badly named parameter in armed function.
...
Another compiler warning fixed in AP_MotorsMatrix.cpp caused by declaring "i" twice.
13 years ago
rmackay9
998058ec07
ArduCopter - removed unused motor pde files including heli.pde, motors_hexa.pde, motors_octa.pde, motors_octa_quad.pde, motors_tri.pde and motors_y6.pde
13 years ago
rmackay9
ad9a8acbab
ArduCopter - test.pde - changed references "motor_armed" to "motors.armed()" as part of move to AP_Motors library.
...
Change to ESC initialisation calls to use motors.throttle_pass_through method of AP_Motors class.
13 years ago
rmackay9
1d086c83f0
ArduCopter - system.pde - changed references to "motor_armed" to "motors.armed()" as part of the move to use AP_Motors library.
13 years ago
rmackay9
4aa40bdf10
ArduCopter - setup.pde - changed cli for helicopter to call the new AP_Motors class's parameters instead of the global parameters.
...
changed init_esc to call the AP_Motor's class's "throttle_pass_through" function.
13 years ago
rmackay9
473126581d
ArduCopter - radio.pde - changed motor initialisation to set update rate, frame orientation, min and max throttle to AP_Motors class.
...
Note: perhaps the motors speed at least should be moved to a parameter within the motors class.
output_min function greatly simplified as this is handled by the AP_Motors class.
13 years ago
rmackay9
905a445391
ArduCopter - motors.pde - changed references to "motor_armed" to "motors.armed()" because we've moved to using the AP_Motors class.
...
Simplified set_servos_4 function which was responsible for calling "output_motors_armed" or "output_motors_disarmed" as this determination as to whether the motors are armed or not is handled within the AP_Motors class.
13 years ago
rmackay9
aa54458dcf
ArduCopter - leds.pde - changed refrences to "motor_armed" to "motors.armed()"
13 years ago
rmackay9
7df17e9b3b
ArduCopter - removed references to MOT_1 etc as these are now within the AP_Motors class (i.e. MOT_1 has become AP_MOTORS_MOT_1)
13 years ago
rmackay9
ee308ea06c
ArduCopter - increased firmware version to 118. Removed nearly all heli parameters as these are all created by the AP_MotorHeli class now.
...
Note: we cannot move the heli_servos to the AP_MotorHeli class yet because of a small issue in the parameters class.
13 years ago
rmackay9
8402a3d837
ArduCopter - Log.pde - changed MOT output to dataflash to take values from AP_Motors class's motor_out array instead of the global motor_out array.
13 years ago
rmackay9
e5710958bc
ArduCopter - GCS_Mavlink.pde - changed output to ground station to use new AP_Motor's class motors array inplace of the global "motor_out" array.
13 years ago
rmackay9
aa4085183c
ArduCopter - Attitude.pde - moved heli_get_angle_boost from heli.pde (which will be removed) to Attitude.pde. In fact we should combine heli_get_angle_boost and the regular get_angle_boost.
13 years ago
rmackay9
54a0709759
ArduCopter - add includes for new AP_Motors classes.
...
Remove global motor_filtered and motor_out arrays.
Removed all global heli variables.
replace "motor_armed" with "motors.armed()"
removed output to rc_4 for tri because this is now handled by AP_MotorsTri class
13 years ago
Michael Oborne
bb50bc3fc5
APM Planner 1.1.60
...
add stab kd ch6
fix mono/linux serial port list
13 years ago
Andrew Tridgell
d60126fc1f
autotest: fixed overshoot due to low resolution log timing
13 years ago
Andrew Tridgell
abd33dd914
autotest: fixed order of startup messages
13 years ago
Chris Anderson
96fcaa5040
Merge branch 'master' of https://code.google.com/p/ardupilot-mega
13 years ago
rmackay9
b71877366e
ArduCopter - AP_Motors library - added new library which has few advantages over current code:
...
1. it's step towards rearchitecting the current code base ahead of a move to RTOS.
2. internally it uses a MatrixTable for the Quad, Octa, OctaQuad, Y6 frames.
3. it implements the missing stability patch for Octa and OctaQuads (still missing for Y6)
Later check-ins will incorporate into the main ArduCopter code.
13 years ago
Andrew Tridgell
c0a54762c6
MAVLink: port the new adaptive flow control to ArduCopter
...
This allows for arbitrary stream rates, and supports flow control if
you are using a 3DR radio
13 years ago
Andrew Tridgell
e1270401bf
MAVLink: make parameter send use adaptive stream rate
...
this makes it possible to fetch parameters with very low air data
rates
13 years ago
Andrew Tridgell
1fd1a55fa6
MAVLink: import change to txbuf as a percentage
13 years ago
Andrew Tridgell
7b50724f60
MAVLink: allow for find grained stream rate control
...
streams can now be requested at any multiple of 20ms. So if you ask
for a stream at 7Hz then you will get it at close to 7Hz.
13 years ago
Chris Anderson
0a9fd22243
Merge branch 'master' of https://code.google.com/p/ardupilot-mega
13 years ago
Andrew Tridgell
4ddeb82b26
MAVLink: imported new headers, with RADIO packet
13 years ago
rmackay9
75d7308fb4
ArduCopter - CH6 tuning - changed Roll/Pitch Rate D tuning to use the user supplied tuning range instead of the range / 100.
...
also changed heli_ext_gyro_gain to make it use the tuning range directly.
13 years ago
Andrew Tridgell
e0bb7e2777
MAVLink: don't waste 100 bytes of bandwidth sending 1 byte of information
...
the GPS_STATUS message is a massive waste of bandwidth, but it is the
only message that tells us the number of visible satellites. So only
send it if that information changes.
This makes MAVLink work better at low baud rates
13 years ago
Andrew Tridgell
87ed39ea46
APM: use set_blocking_writes(false) when we have done ground start
13 years ago
Andrew Tridgell
7634f541b9
ACM: use set_blocking_writes(false) when we arm motors
13 years ago
Andrew Tridgell
0c445101ff
FastSerial: added set_blocking_writes() interface
...
this allows us to put a serial port into non-blocking mode, so that
writes that don't fit in the transmit buffer are dropped. This will be
used in flight to prevent stray printf() calls from causing large time
delays in the code
13 years ago
Andrew Tridgell
b4107d35e8
MAVLink: raise the serial transmit buffer size to 256 bytes
...
the 128 byte serial transmit buffer was causing significant problems
with queueing of mavlink messages. With 256 bytes we can fit a lot
more messages out in each pass of the code, which makes telemetry more
efficient
As we discussed on the dev call, we now have enough free ram for this
to be worthwhile
13 years ago
Andrew Tridgell
3b3f9d8b17
autotest: use the automatic declination code in autotest
13 years ago
Andrew Tridgell
22ff8cb197
examples: fixed build of some examples with new AP_Declination code
13 years ago
Andrew Tridgell
86cc7a5e1d
APM: enable AP_Declination by default
13 years ago
Andrew Tridgell
0bc604f030
ACM: removed FORCE_AUTOMATIC_DECLINATION_UPDATE
...
we now have the EEPROM option COMPASS_AUTODEC instead
13 years ago
Andrew Tridgell
504c53f746
Compass: added COMPASS_AUTODEC option
...
when this is 1 (which is the default), we will get the declination
automatically via the AP_Declination library
when it is 0 we will use the value configured by the user
13 years ago
Andrew Tridgell
168c45ab12
AP_Declination: enabled auto declination by default in APM
13 years ago
Andrew Tridgell
927834106d
AP_Declination: save some more memory by putting the declination keys in progmem
...
there was a comment saying this was too slow, but it actually costs
about 30 usec extra, which is trivial given the full auto declination
call costs 680 usec and its only called once per boot
13 years ago
Andrew Tridgell
70d4280935
AP_Declination: added timing information to declination test
13 years ago
Andrew Tridgell
175352845c
AP_Declination: fixed build under SITL
13 years ago
Adam M Rivera
ca82350f17
AP_Declination_test: Updated test with better print messages.
13 years ago
Adam M Rivera
01b1e58f7d
AP_Declination: Update LUT based on the changes that I made in the LUT generation code. This LUT is the final version that has no truncation.
13 years ago
Adam M Rivera
51b70e4d36
ArduCopter: Changed implementation of configuration value for automatic declination. There is now a FORCE_AUTOMATIC_DECLINATION_UPDATE that when enabled will update the declination on every GPS 3D fix regardless of whether or not the user saved a value to the EEPROM. By default the declination will only be set by the automatic declination routine if the user has not saved a declination to the EEPROM.
13 years ago