Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
1f21256f
Commit
1f21256f
authored
7 years ago
by
Lorenz Meier
Browse files
Options
Downloads
Patches
Plain Diff
IO safety switch: Code style
parent
0013f641
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/px4iofirmware/safety.c
+8
-6
8 additions, 6 deletions
src/modules/px4iofirmware/safety.c
with
8 additions
and
6 deletions
src/modules/px4iofirmware/safety.c
+
8
−
6
View file @
1f21256f
/****************************************************************************
*
* Copyright (c) 2012
,
201
3
PX4 Development Team. All rights reserved.
* Copyright (c) 2012
-
201
7
PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -34,6 +34,8 @@
/**
* @file safety.c
* Safety button logic.
*
* @author Lorenz Meier <lorenz@px4.io>
*/
#include
<px4_config.h>
...
...
@@ -56,11 +58,11 @@ static unsigned counter = 0;
/*
* Define the various LED flash sequences for each system state.
*/
#define LED_PATTERN_FMU_OK_TO_ARM
0x0003
/**< slow blinking */
#define LED_PATTERN_FMU_REFUSE_TO_ARM
0x5555
/**< fast blinking */
#define LED_PATTERN_IO_ARMED
0x5050
/**< long off, then double blink */
#define LED_PATTERN_FMU_ARMED
0x5500
/**< long off, then quad blink */
#define LED_PATTERN_IO_FMU_ARMED
0xffff
/**< constantly on */
#define LED_PATTERN_FMU_OK_TO_ARM 0x0003
/**< slow blinking */
#define LED_PATTERN_FMU_REFUSE_TO_ARM 0x5555
/**< fast blinking */
#define LED_PATTERN_IO_ARMED 0x5050
/**< long off, then double blink */
#define LED_PATTERN_FMU_ARMED 0x5500
/**< long off, then quad blink */
#define LED_PATTERN_IO_FMU_ARMED 0xffff
/**< constantly on */
static
unsigned
blink_counter
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment