afry-south / dragonfly-fcb

ÅF Dragonfly Quadrotor UAV Project
Other
7 stars 3 forks source link

Make receiver value printing commands #72

Closed stenbergd closed 9 years ago

stenbergd commented 9 years ago

To test that the receiver behaves correctly, implement commands to print the following:

getreceiver - prints all receiver channels' current value

startreceiversampling:

(NOTE: Be careful not to let the program create/kill multiple threads since they will clutter RTOS heap)

getreceivercalibration - Prints the receiver calibrated values

stenbergd commented 9 years ago

getreceiver done.

stenbergd commented 9 years ago

get receiver calibration values done.

stenbergd commented 9 years ago

The start receiver sampling is mostly done

Need stop receiver sampling command

Needed to use heap2.c instead so we can create/delete task

Also small bug when printing sample time and duration

stenbergd commented 9 years ago

Also, we must look more at strncat to avoid overwriting string output buffer. The size sets only how many bytes we are allowed to append to the end of input string and does not take heed of max size of string.

stenbergd commented 9 years ago

Fixed the "small bug" when printing sample time and duration