Commit Graph

129 Commits

Author SHA1 Message Date
Andrew Tridgell 80bad445b8 Tracker: changed startup order
this allows BoardConfig to report errors in a way that allows for
BRD_TYPE to be changed by the user
2016-08-10 19:54:01 +10:00
Randy Mackay a079c7bf4c Tracker: bug fix re ignoring invalid START_LAT message 2016-07-06 12:01:04 +09:00
stefanlynka 0c06e62bce Tracker: fixed calibration bug 2016-06-04 09:13:00 +09:00
Andrew Tridgell 8c3bbdaf73 AntennaTracker: don't stall EKF during baro cal 2016-05-24 17:00:55 +10:00
Andrew Tridgell d3c19de9df AntennaTracker: simplify UART setup 2016-05-21 15:25:16 +10:00
skyscraper 662cefd086 AntennaTracker: Fix up after refactoring RC_Channel class
Further to refactor of RC_Channel class which included
adding get_xx set_xx methods, change reads and writes to the public members
to calls to  get and set functionsss

old public member(int16_t)   get function -> int16_t     set function (int16_t)
(expression where c is an object of type RC_Channel)
c.radio_in                     c.get_radio_in()           c.set_radio_in(v)
c.control_in                   c.get_control_in()         c.set_control_in(v)
c.servo_out                    c.get_servo_out()          c.set_servo_out(v)
c.pwm_out                      c.get_pwm_out()            // use existing
c.radio_out                    c.get_radio_out()          c.set_radio_out(v)
c.radio_max                    c.get_radio_max()          c.set_radio_max(v)
c.radio_min                    c.get_radio_min()          c.set_radio_min(v)
c.radio_trim                   c.get_radio_trim()         c.set_radio_trim(v);

c.min_max_configured() // return true if min and max are configured

Because data members of RC_Channels are now private and so cannot be written directly
 some overloads are provided in the Plane classes to provide the old functionality

new overload Plane::stick_mix_channel(RC_Channel *channel)
which forwards to the previously existing
void stick_mix_channel(RC_Channel *channel, int16_t &servo_out);

new overload Plane::channel_output_mixer(Rc_Channel* , RC_Channel*)const
which forwards to
(uint8_t mixing_type, int16_t & chan1, int16_t & chan2)const;

Rename functions

 RC_Channel_aux::set_radio_trim(Aux_servo_function_t function)
    to RC_Channel_aux::set_trim_to_radio_in_for(Aux_servo_function_t function)

 RC_Channel_aux::set_servo_out(Aux_servo_function_t function, int16_t value)
    to RC_Channel_aux::set_servo_out_for(Aux_servo_function_t function, int16_t value)

 Rationale:

        RC_Channel is a complicated class, which combines
        several functionalities dealing with stick inputs
        in pwm and logical units, logical and actual actuator
        outputs, unit conversion etc, etc
        The intent of this PR is to clarify existing use of
        the class. At the basic level it should now be possible
        to grep all places where private variable is set by
        searching for the set_xx function.

        (The wider purpose is to provide a more generic and
        logically simpler method of output mixing. This is a small step)
2016-05-10 16:21:16 +10:00
Lucas De Marchi 49a46e463f AntennaTracker: use separate header for version macro
Having the version macro in the config.h and consequently in the main
vehicle header means that whenever the version changes we need to
compiler the whole vehicle again. This would not be so bad if we weren't
also appending the git hash in the version. In this case, whenever we
commit to the repository we would need to recompile everything.

Move to a separate header that is include only by its users. Then
instead of compiling everything we will compile just a few files.
2016-05-06 13:11:28 -03:00
Tom Pittenger db9bed573f Tracker: use set_dataflash() for static logging 2016-02-24 09:18:05 +11:00
Randy Mackay e62cb36298 Tracker: log mode changes 2016-02-10 11:49:41 +09:00
Randy Mackay ecf01732d9 Tracker: add dataflash logging 2015-12-27 16:14:20 +09:00
Andrew Tridgell 782ba00d4b Tracker: convert to Hz based task table 2015-12-27 14:57:26 +09:00
Luis Vale Gonçalves 6dd28f632c Tracker: revise text messages
Clean up text messages
2015-11-25 20:47:07 +09:00
Caio Marcelo de Oliveira Filho dd3fb0a689 Tracker: use millis/micros/panic functions 2015-11-20 12:26:23 +09:00
lvale e7efaa45c5 Tracker: text message severity uniformization
Continuing the uniformization, now for AntennaTracker
2015-11-05 12:33:59 +09:00
Lucas De Marchi 2b37906f0d AntennaTracker: remove check for MAVLINK_COMM_NUM_BUFFERS 2015-11-04 12:14:15 +11:00
Lucas De Marchi 3b0a1ef563 AntennaTracker: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1 2015-11-04 12:14:13 +11:00
Lucas De Marchi 20c6ffc5e3 Replace use of UARTDriver::printf_P() with UARTDriver::printf()
This also starts to show warnings on places that were already using
wrong printf format strings.
2015-10-30 14:35:25 +09:00
Lucas De Marchi 6f4904189b Replace use of println_P() with println() 2015-10-30 14:35:22 +09:00
Lucas De Marchi 84da1f5039 Rename gcs_send_text_P to gcs_send_text 2015-10-30 14:35:07 +09:00
Lucas De Marchi 2c38e31c93 Remove use of PSTR
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.

This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.

AVR-specific places were not changed.
2015-10-30 14:35:04 +09:00
ggregory8 76871ef0cd Tracker: fix start lat, lon sanity check 2015-10-27 12:50:40 +09:00
Randy Mackay 012b632d09 Tracker: send home position when home is set or get-home msg received 2015-10-03 12:56:31 +09:00
Randy Mackay 7f0aad63b9 Tracker: remove INS start style 2015-09-21 17:06:47 +09:00
Randy Mackay a9c6d34a9e Tracker: sanity check home location parameters 2015-08-27 15:16:01 +09:00
squilter f1d9b3570c Tracker: update severity values 2015-08-25 14:04:45 +09:00
squilter d99c85c1fe Tracker: init vehicle capabilities 2015-08-01 09:47:35 +09:00
Jakub Oller e73562140b Tracker: remove return from mavlink_snoop_static 2015-07-06 12:11:47 +09:00
Andrew Tridgell f8adea2ddd AntennaTracker: complete conversion to .cpp files 2015-06-01 15:08:08 +10:00
Andrew Tridgell 1660b027ca AntennaTracker: rename pde files to cpp 2015-06-01 15:06:32 +10:00