Skip to content

Commit

Permalink
gps buzzer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mariansoban committed Nov 29, 2015
1 parent 02f76da commit 89ed5df
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ArduPlane/Plane.h
@@ -1,6 +1,6 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-

#define THISFIRMWARE "ArduPlane V3.4.0-sobi"
#define THISFIRMWARE "ArduPlane V3.4.0-sobi-v2"
/*
Lead developer: Andrew Tridgell
Expand Down
7 changes: 7 additions & 0 deletions ArduPlane/release-notes.txt
@@ -1,3 +1,10 @@
Release 3.4.0-sobi-v2, 29th November 2015
-------------------------------------
DEV version with:
-added buzzer for some GPS fix statuses
-bugfix of APM2 arming while boot (see: http://ardupilot.com/forum/viewtopic.php?f=113&t=14192 , https://github.com/diydrones/ardupilot/issues/3135)


Release 3.4.0-sobi, 2nd November 2015
-------------------------------------
DEV version with:
Expand Down
26 changes: 26 additions & 0 deletions libraries/AP_Notify/Buzzer.cpp
Expand Up @@ -99,6 +99,32 @@ void Buzzer::update()
break;
}
return;
// FIXME [ms] buzzer for GPS status
case TRIPLE_BUZZ:
// buzz for 10th of a second
switch (_pattern_counter) {
case 1:
on(true);
break;
case 2:
on(false);
break;
case 3:
on(true);
break;
case 4:
on(false);
break;
case 5:
on(true);
break;
case 6:
default:
on(false);
_pattern = NONE;
break;
}
return;
case ARMING_BUZZ:
// record start time
if (_pattern_counter == 1) {
Expand Down

0 comments on commit 89ed5df

Please sign in to comment.