paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [paparazzi/paparazzi] da0dac: [rotorcraft][linux] li


From: GitHub
Subject: [paparazzi-commits] [paparazzi/paparazzi] da0dac: [rotorcraft][linux] limit main/event loop to 1kHz
Date: Wed, 15 Jul 2015 12:25:45 -0700

  Branch: refs/heads/master
  Home:   https://github.com/paparazzi/paparazzi
  Commit: da0dac74bd8ed5cff55b665da1cbdb989ef52eb4
      
https://github.com/paparazzi/paparazzi/commit/da0dac74bd8ed5cff55b665da1cbdb989ef52eb4
  Author: Felix Ruess <address@hidden>
  Date:   2015-07-15 (Wed, 15 Jul 2015)

  Changed paths:
    M conf/boards/ardrone2.makefile
    M conf/boards/bebop.makefile
    M sw/airborne/firmwares/rotorcraft/main.c

  Log Message:
  -----------
  [rotorcraft][linux] limit main/event loop to 1kHz

This is a kludge until we can better leverage threads and have real events.
Without this limit the event flags will constantly polled as fast as possible,
resulting on 100% cpu load on boards with an (RT)OS.
On bare metal boards this is not an issue, as you have nothing else running 
anyway.

Enable this for the bebop and ardrone2 by default.

Alternative to #1239 and should fix #1233


  Commit: 4eaad2c97e4c9e393eac4d2f2b2ab8f150f27d95
      
https://github.com/paparazzi/paparazzi/commit/4eaad2c97e4c9e393eac4d2f2b2ab8f150f27d95
  Author: Felix Ruess <address@hidden>
  Date:   2015-07-15 (Wed, 15 Jul 2015)

  Changed paths:
    M conf/boards/ardrone2.makefile
    M conf/boards/bebop.makefile
    M sw/airborne/firmwares/rotorcraft/main.c

  Log Message:
  -----------
  Merge pull request #1240 from paparazzi/main_event_1khz_limit

[rotorcraft][linux] limit main/event loop to 1kHz



This is a kludge until we can better leverage threads and have real events.
Without this limit the event flags will constantly polled as fast as possible,
resulting on 100% cpu load on boards with an (RT)OS.
On bare metal boards this is not an issue, as you have nothing else running 
anyway.

Enable this for the bebop and ardrone2 by default.

Alternative to #1239 and should fix #1233


Compare: 
https://github.com/paparazzi/paparazzi/compare/0a46a0a2411c...4eaad2c97e4c

reply via email to

[Prev in Thread] Current Thread [Next in Thread]